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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <div class="container">
  
  <div class="row">
    
    <nav class="col-sm-2"><!--nav-->
      <div class="row">
        <div class="col-sm-12"><!--logo-->
          <img src="http://placehold.it/200&text=Logo" alt="test" class="img-circle img-responsive center" />
        </div><!--/logo-->
        <ul class="nav nav-pills nav-stacked">
          <li class="active"><a href="#"><span class="glyphicon glyphicon-home"></span>&nbsp;&nbsp;Home</a></li>
          <li><a href="#"><span class="glyphicon glyphicon-cutlery"></span>&nbsp;&nbsp;Recipes</a></li>
          <li><a href="#"><span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;About</a></li>
          <li><a href="#"><span class="glyphicon glyphicon-envelope"></span>&nbsp;&nbsp;Contact</a></li>
          
        </ul>
        
      </nav><!--/nav-->
      
      <div class="col-sm-10">
        
        <div id="this-carousel-id" class="carousel slide hidden-xs"><!-- class of slide for animation -->
          <div class="carousel-inner">
            <div class="item active"><!-- class of active since it's the first item -->
              <img src="http://placehold.it/1200x480" alt="" />
              <div class="carousel-caption">
                <p>Caption text here</p>
              </div>
            </div>
            <div class="item">
              <img src="http://placehold.it/1200x480" alt="" />
              <div class="carousel-caption">
                <p>Caption text here</p>
              </div>
            </div>
            <div class="item">
              <img src="http://placehold.it/1200x480" alt="" />
              <div class="carousel-caption">
                <p>Caption text here</p>
              </div>
            </div>
            <div class="item">
              <img src="http://placehold.it/1200x480" alt="" />
              <div class="carousel-caption">
                <p>Caption text here</p>
              </div>
            </div>
          </div><!-- /.carousel-inner -->
          <!--  Next and Previous controls below
        href values must reference the id for this carousel -->
          <a class="carousel-control left" href="#this-carousel-id" data-slide="prev">&lsaquo;</a>
          <a class="carousel-control right" href="#this-carousel-id" data-slide="next">&rsaquo;</a>
        </div><!-- /.carousel -->
        
        <div class="row">
          <div class="col-xs-12">
            
            <div class="row">
              <div class="col-md-12">
                <h1>Headline</h1><p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni totam veniam libero unde quia commodi quibusdam minus alias reiciendis placeat explicabo culpa esse velit ipsa facere sequi eaque nihil facilis sunt quod! </p>  
              </div>
            </div>
            <div class="row">
              <div class="col-md-3 col-sm-6 post">
                 <a href="#" class="thumbnail"><img src="http://placehold.it/500" alt="" /></a>
                <h2>Post 1</h2><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam totam dolore facere nulla similique magni nobis beatae eveniet deserunt quisquam nihil autem. Maxime iste voluptate laboriosam veritatis possimus qui molestias numquam officia deleniti a! Debitis itaque tempora vel quas quidem natus fugit alias aliquam maiores deserunt quibusdam error laboriosam aut.</p>
                <span class="btn btn-default">More</span>
              </div>
              <div class="col-md-3 col-sm-6 post">
                 <a href="#" class="thumbnail"><img src="http://placehold.it/500" alt="" /></a>
                <h2>Post 2</h2><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam totam dolore facere nulla similique magni nobis beatae eveniet deserunt quisquam nihil autem. Maxime iste voluptate laboriosam veritatis possimus qui molestias numquam officia deleniti a! Debitis itaque tempora vel quas quidem natus fugit alias aliquam maiores deserunt quibusdam error laboriosam aut.</p>
                <span class="btn btn-default">More</span>
              </div>
              <div class="col-md-3 col-sm-6 post">
                 <a href="#" class="thumbnail"><img src="http://placehold.it/500" alt="" /></a>
                <h2>Post 3</h2><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam totam dolore facere nulla similique magni nobis beatae eveniet deserunt quisquam nihil autem. Maxime iste voluptate laboriosam veritatis possimus qui molestias numquam officia deleniti a! Debitis itaque tempora vel quas quidem natus fugit alias aliquam maiores deserunt quibusdam error laboriosam aut.</p>
                <span class="btn btn-default">More</span>
              </div>
              <div class="col-md-3 col-sm-6 post">
                 <a href="#" class="thumbnail"><img src="http://placehold.it/500" alt="" /></a>
                <h2>Post 4</h2><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam totam dolore facere nulla similique magni nobis beatae eveniet deserunt quisquam nihil autem. Maxime iste voluptate laboriosam veritatis possimus qui molestias numquam officia deleniti a! Debitis itaque tempora vel quas quidem natus fugit alias aliquam maiores deserunt quibusdam error laboriosam aut.</p>
                <span class="btn btn-default">More</span>
              </div>
            </div>    
          </div>
        </div>
      </div>
    </div>   
        
 </div><!--/.content-->
    <footer class="row footer">
      <div class="panel-footer"><p>&copy; 2013 Jane Smith</p></div>
    </footer>


              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Pompiere);

.container {
  margin-top: 20px;
}

.center {
  margin: 0 auto;
}

nav div, h1, h2, h3, h4, h5, h6 {
  font-family: 'Pompiere';
  text-transform: uppercase;
}

.nav li {
  margin-top: 12px;
  font-size: 24px;
  text-transform: uppercase;
}

.nav li a {
  color: #000;
}

.nav li:last-child {
  margin-bottom: 10px;
}

.nav-pills>li.active>a, .nav-pills>li.active>a:focus {
  color: #000;
  background-color: transparent;
}

.nav-pills>li.active>a:hover {
  background-color: #eee;
  color: #000;
}

.carousel-control.left, .carousel-control.right {
  top: 40%;
  background: none;
  font-size: 50px;
}

.carousel-caption {
  font-size: 28px;
  bottom: 0;
}

.post {
  margin-bottom: 30px;
}

a.thumbnail:hover, a.thumbnail:focus{
  border: 1px solid black;
}

footer p {
  text-align: center;
}

@media (max-width: 992px){
  .carousel-caption {
    font-size: 18px;
  }
  .nav li {
    font-size: 20px;
  }
}

@media (max-width: 768px){
  .thumbnail {
    border: none;
  }
  a.thumbnail:hover, a.thumbnail:focus{
    border: none;
  }
}
              
            
!

JS

              
                /*
Playing with the new Bootstrap 3.0 framework

Layout inspired by: http://flattrendz.com/wp-content/uploads/food-sense.jpg
*/

              
            
!
999px

Console