Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- NAVIGATION BAR -->
 
<nav class="navbar navbar-default navbar-fixed-top">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">KL</a>
    </div>
    <div class="collapse navbar-colapse" id="myNavbar">
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#about">ABOUT</a></li>
        <li><a href="#portfolio">PORTFOLIO</a></li>
        <li><a href="#connect">CONNECT</a><li>
      </ul>
    </div>
  </div>
</nav>  

<!-- INTRO -->

<div id="about" class="container-fluid bg-1 text-center">
  <h1>Knock, knock.</h1>
  <img src="http://i64.tinypic.com/2ugo2a1.png" alt="abstract door" id="img2">
  <h3>Who's there?<br>Kris Lyle.<br>Kyle who?<br>#facepalm</p>
</div>
  
<!-- PORTFOLIO -->
  
<div id="portfolio" class="container-fluid bg-2 text-center">
  <h1>Portfolio</h1>  
  <div class="row">
    
    <!-- LEFT COLUMN: CODER / DESIGN -->

    <div class="col-sm-6">
      <h2>Code & Design</h2>
      <img src="http://i63.tinypic.com/2wh32ic.png" class="img-responsive" alt="laptop with </> on screen" id="img1">
    </div>
    
    <!-- RIGHT COLUMN: WRITER / EDITOR -->
    
    <div class="col-sm-6">
      <h2>Write & Edit</h2>
      <img src="http://i67.tinypic.com/345fpd0.png" class="img-responsive" alt="typerwriter with blank page loaded" id="img1">
    </div>
</div>
  
<!-- CONNECT -->
  
<div id="connect" class="container-fluid bg-3 text-center">
  <h1>Let's Talk!</h1>
  <img src="http://i68.tinypic.com/2dqn18p.png" alt="walkie-talkie" id="img2">
  <p>As nerdy as my background is, I have a passion for connecting with people knee-to-knee (or screen to screen), and helping them get from A to B.</p>
  <p>Let me help you pinpoint your prickliest problem. Then we can discover the perfect solution. I love this troubleshooting process, especially when I get to create something.)</p>
  <p>I don't really have a niche yet... just an obsession for problem-solving. So if you'd like to braintstorm, let's chat. (It's on the house). If we find out you need more than that (a new or updated website, maybe?), then we can talk rates.</p>
  <p>Bottom line, you got problems. ;) Let's find your solutions together.</p>
</div>
  
</body>

<footer class="container-fluid bg-4">
  <p class="text-center"><small>Coded and Smithed by <s>Kyle</s> Kris Lyle</small></p>
</footer>


              
            
!

CSS

              
                
/* BACKGROUND COLOR */

.bg-1 {
  background-color: lightBlue;
  color: white; 
}

.bg-2 {
  background-color: lightGreen;
  color: white;
}

.bg-3 {
  background-color: Coral;
  color: white;
}

.bg-4 {
  background-color: darkGrey;
  color: black;
}

/* PADDING */

.container-fluid {
  padding-top: 70px;
  padding-bottom: 70px;
}

/* NAVBAR STYLE */

.navbar {
    margin-bottom: 0;
    background-color: lightYellow;
    z-index: 9999;
    border: 0;
    font-size: 12px !important;
    line-height: 1.42857143 !important;
    letter-spacing: 4px;
    border-radius: 0;
}

.navbar li a, .navbar .navbar-brand {
    color: #ggg !important;
}

.navbar-nav li a:hover, .navbar-nav li.active a {
    color: blue !important;
    background-color: green !important;
}

.navbar-default .navbar-toggle {
    border-color: transparent;
    color: red !important;
}

/* IMAGES */

#img1 {
  margin: auto;
  display: block;
  width: 50%;
}

#img2 {
  
  margin: auto;
  display:block;
  width: 20%;
}
              
            
!

JS

              
                
              
            
!
999px

Console