Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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="row">
  <div class="col">
    <h1>Column 1</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque at facilisis tortor, vel ultricies justo. Duis scelerisque ante erat, vel mollis sapien vestibulum iaculis. Nulla facilisi. Suspendisse ut placerat urna. Phasellus varius lacus vitae nisi pretium congue. Pellentesque accumsan, tortor in fringilla facilisis, tortor orci faucibus lacus, a tempus augue velit ut tellus. Sed convallis nunc sed placerat ornare. Phasellus nec nunc a nunc feugiat sagittis. Vivamus ac posuere ex, ac ornare sem. Nunc laoreet condimentum quam, laoreet elementum erat placerat non. Vivamus fringilla enim a mattis congue. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean vestibulum odio quis lacus cursus, eu fringilla enim ultrices. Pellentesque nec elit sagittis, euismod orci sed, aliquam orci.</p>
  </div>
  <div class="col">
    <h1>Column 2</h1>
    <p>Sed imperdiet mi eu libero imperdiet, nec ornare turpis egestas. Duis posuere ut orci nec mollis. Ut posuere feugiat risus a pretium. Aliquam eu sodales odio. Suspendisse id sapien velit. Aenean interdum porta urna, at pulvinar nisi egestas nec. Etiam euismod felis nulla, nec consectetur odio ullamcorper at. Integer in finibus lectus.</p>
  </div>
</div>
              
            
!

CSS

              
                body {
  background: #ddd;
  font-family: "Open Sans", san-serif;
  margin: 0;
}
.row {
  display: table;
}
.col {
  background: #fff;
  border: 10px solid #ddd;
  display: table-cell;
  padding: 25px;
}
              
            
!

JS

              
                
              
            
!
999px

Console