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="solid">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Recusandae, omnis. Aut at maxime voluptate tenetur quidem commodi laborum eligendi, placeat quas enim consequuntur itaque. Numquam distinctio rerum perferendis delectus laboriosam.</p>
</div>
<div class="dotted">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa porro omnis suscipit nesciunt, illo.</p>
</div>
<div class="dashed">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repudiandae doloremque, quibusdam sunt suscipit sit velit harum illum.</p>
</div>
<div class="double">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Impedit tempore animi minus cupiditate doloremque fugit vero, aperiam accusamus ex voluptatum atque nesciunt ab.</p>
</div>
<div class="groove">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias repudiandae facere fugit, vero architecto, vitae consequatur eos amet maxime cumque veniam.</p>
</div>
<div class="ridge">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempora excepturi hic quidem tempore veniam velit nesciunt ut nisi impedit?</p>
</div>
<div class="inset">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perspiciatis mollitia eaque eveniet quidem modi officiis aut, dolor ab, doloremque, repellendus velit veritatis enim necessitatibus nam error.</p>
</div>
<div class="outset">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum, velit! Obcaecati provident cum eveniet perspiciatis in dolore.</p>
</div>
              
            
!

CSS

              
                div{
  margin-bottom:9px;
}

.solid{
  border: 3px solid #ff0000;
}

.dotted{
  border: 3px dotted #ff0000;
}

.dashed{
  border: 3px dashed #ff0000;
}

.double{
  border: 3px double #ff0000;
}

.groove{
  border: 3px groove #ff0000;
}

.ridge{
  border: 3px ridge #ff0000;
}

.inset{
  border: 3px inset #ff0000;
}

.outset{
  border: 3px outset #ff0000;
}
              
            
!

JS

              
                
              
            
!
999px

Console