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 id="example1">
  <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Eaque ullam eligendi sed commodi vero iure consequuntur sequi nulla, molestiae corporis eius quasi libero sint. Aliquid libero maiores necessitatibus nobis dicta.</p>
</div>
<div id="example2">
  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Deleniti, aperiam vitae? Iusto, optio eligendi dicta suscipit inventore dolorem culpa neque aliquam doloribus maiores unde distinctio voluptatum hic tempora! Molestiae, tempora.</p>
</div>
<div id="example3">
  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam aut sit dolorem fugit earum dolores libero iusto, cum amet vitae sunt voluptatibus, quam iste dignissimos deserunt esse! Suscipit, magnam reiciendis.</p>
</div>
<div id="example4">
  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quis saepe dolor corporis consequuntur voluptas totam quia soluta optio quisquam commodi? Obcaecati voluptatibus architecto dicta itaque, amet quam in nulla deserunt.</p>
</div>
              
            
!

CSS

              
                #example1 {
  border: 1px solid;
  padding: 10px;
  box-shadow: 10px 10px 5px red;
  margin-bottom: 50px;
}
#example2 {
  border: 1px solid;
  padding: 10px;
  box-shadow: 5px -10px blue;
  margin-bottom: 50px;
}
#example3 {
  border: 1px solid;
  padding: 10px;
  box-shadow: inset 5px 5px 40px aqua;
  margin-bottom: 50px;
}
#example4 {
  border: 1px solid;
  padding: 10px;
  box-shadow: 5px 10px blue, -5px -10px pink;
}
              
            
!

JS

              
                
              
            
!
999px

Console