Pen Settings



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


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


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.


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.


    h1.crappy-border Crappy dotted line
    p.crappy-border Crappy dotted border
    h1.nice-border Nice dotted line
    p.nice-border Nice dotted border
  a(href='' target="_blank") Read the blog post


  background rgba(229, 196, 102, 1)
  color rgba(40,40,40,1)
  max-width 800px
  margin 4rem auto 0
  color rgba(255,255,255,0.7)
  background rgba(213, 126, 0, 1)
  padding 1rem
  text-decoration none
  display inline-block
 // basic styling for boxes
.crappy, .nice
  background rgba(255,255,255,0.2)
  padding 1rem 
  margin-bottom 3rem

// Basic styling for h1 and p
  padding-bottom 1rem
  margin-bottom 2rem
  border-width 0 0 13px 0 // border-bottom only  
  padding 2rem
  border-width 8px // border on all sides
 // standard crappy dotted border
  border-style dotted 
  border-color rgba(213, 126, 0, 1)

 // nice dotted border using svg as border image
  // Safari & Chrome need border-style and border-color ¯\_(ツ)_/¯
  border-style dotted 
  border-color rgba(213, 126, 0, 1) 
  border-image-source url('')
  border-image-slice 33% 33%
  border-image-repeat round