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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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="header col-md-12">
    <h1 class="text-primary">Isaac Newton</h1>
  </div>

  <div class="row">
    <div class="sidebar col-md-2">
      <ul>
        <li><a href="#">Links</a></li>
        <li><a href="#">Links</a></li>
        <li><a href="#">Links</a></li>
        <li><a href="#">Links</a></li>
        <li><a href="#">Links</a></li>
        <li><a href="#">Links</a></li>
        <li><a href="#">Links</a></li>
      </ul>
    </div>

    <div class="main col-md-8">
        <img src="https://r.hswstatic.com/w_907/gif/missedinhistory-98-2015-11-isaac-newton-post-600x350.jpg" alt="Isaac Newton passes white light through a prism to create a spectral rainbow." />
        <p class="caption">Sir Isaac Newton (25 December 1642 – 20 March 1726) was an English natural philosopher who is widely recognised as one of the most influential scientists of all time and a key figure in the scientific revolution.</p>

      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut sed sem convallis, elementum nisl at, imperdiet sapien. Aliquam arcu elit, consequat in risus a, maximus facilisis arcu. Etiam feugiat tortor vitae pretium porttitor. Maecenas laoreet ligula luctus nibh luctus, finibus mattis est tempor. Cras ornare, ipsum non dictum vulputate, enim nulla ultricies magna, id condimentum nibh justo at lectus. In quis nisi ac mi aliquet convallis. Vivamus efficitur, velit at faucibus tristique, eros tellus convallis justo, at pretium nisi purus id augue. Ut vulputate sem eget scelerisque ornare. Interdum et malesuada fames ac ante ipsum primis in faucibus. Donec et consequat sapien. Morbi eget nulla ultricies, sodales mi vel, sollicitudin ligula. Donec pharetra purus lorem, in ornare leo imperdiet vel. Nulla sodales laoreet lectus id efficitur. Sed non quam aliquet mauris fringilla maximus.</p>

<p>Sed bibendum sodales placerat. Integer et lorem nec dui posuere convallis quis id ante. Duis fermentum odio in ex pharetra efficitur. Duis hendrerit ut quam vel volutpat. Sed dui orci, mattis lacinia pellentesque eu, viverra a lacus. Cras faucibus, sapien vitae vulputate rhoncus, dui velit hendrerit sem, nec luctus sem nibh ut quam. Proin molestie, nisl ut placerat auctor, nisi augue ultricies nisi, quis convallis purus ex quis sapien. Cras ac sagittis dui, in tempor dolor. Aliquam lobortis mi sed est rhoncus tempus. Aenean mollis vulputate lacinia. Curabitur nec luctus mi. Aliquam vitae feugiat ligula. Pellentesque id imperdiet turpis, nec vehicula tellus. Morbi sodales elementum commodo. Morbi bibendum lorem sed convallis congue. Phasellus at dolor quis metus feugiat fringilla.</p>

<p>Maecenas faucibus pretium metus, et sollicitudin felis volutpat in. Donec ultrices dictum orci ut consectetur. Maecenas pretium dolor enim, et egestas tortor ultrices vitae. Aliquam sit amet aliquet neque. Sed sed maximus felis. Sed et dolor vitae leo feugiat efficitur. Morbi id urna nec ante sollicitudin feugiat non non massa. Donec non elit pellentesque, dapibus quam vitae, iaculis sapien. Donec pellentesque arcu et mattis vulputate. Donec pulvinar hendrerit leo sit amet malesuada. Donec lectus sapien, sollicitudin in ornare in, pulvinar nec velit. Morbi consectetur accumsan lorem, id mollis metus sagittis at. In faucibus ac nibh quis condimentum. Mauris tortor lorem, vulputate ut vestibulum et, fermentum sed turpis.</p>

<p>Morbi tincidunt arcu turpis. Duis ut iaculis nisl, vehicula consectetur tellus. Vestibulum blandit massa ut magna vehicula egestas. Nam arcu ligula, commodo fermentum odio a, fermentum hendrerit risus. Curabitur enim risus, tempor sed sem eu, sollicitudin scelerisque mi. Donec elementum aliquam ex, a lacinia lectus pharetra ut. Donec vitae ante ut turpis dictum dignissim. Donec ut turpis consectetur, feugiat orci quis, sodales velit.</p>

Nam pretium ullamcorper lorem. Aenean scelerisque nulla sit amet condimentum pharetra. Sed consequat pretium sem, a fringilla quam mollis quis. Nullam scelerisque vel massa eget pretium. Donec consequat ex sit amet pellentesque varius. In justo ligula, tincidunt eget cursus porttitor, interdum vitae justo. Sed nec nisl placerat, blandit nunc sit amet, porta mauris.</p>
    </div>
    <div class="sidebar col-md-2">
     <ul>
        <li><a href="#">Links</a></li>
        <li><a href="#">Links</a></li>
        <li><a href="#">Links</a></li>
        <li><a href="#">Links</a></li>
        <li><a href="#">Links</a></li>
        <li><a href="#">Links</a></li>
        <li><a href="#">Links</a></li>
      </ul>
    </div>
  </div>
</div>
              
            
!

CSS

              
                body {
  background-color: #a3d5d3;
}
h1 {text-align: center;}

img {
  margin: auto;
  width: 100%;
}
.caption {
  text-align: justify;
  border: 2px solid blue;
  background-color: white;
}

div {  
  border: 2px solid blue;}

.sidebar {text-align: center;
  border: 2px solid blue;}
              
            
!

JS

              
                document.getElementsByTagName("h1")[0].style.fontSize = "80px";

$("img").addClass("img-responsive");
              
            
!
999px

Console