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

              
                .wrapper
  div.crappy
    h1.crappy-border Crappy dotted line
    p.crappy-border Crappy dotted border
  
  div.nice
    h1.nice-border Nice dotted line
    p.nice-border Nice dotted border
    
  a(href='https://medium.com/@luclemo/creating-true-dotted-borders-with-css-233f296d8145' target="_blank") Read the blog post
              
            
!

CSS

              
                body
  background rgba(229, 196, 102, 1)
  color rgba(40,40,40,1)
  
.wrapper
  max-width 800px
  margin 4rem auto 0
  
a
  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
h1
  padding-bottom 1rem
  margin-bottom 2rem
  border-width 0 0 13px 0 // border-bottom only  
p
  padding 2rem
  border-width 8px // border on all sides
 
 // standard crappy dotted border
.crappy-border
  border-style dotted 
  border-color rgba(213, 126, 0, 1)

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

  
  
    
              
            
!

JS

              
                
              
            
!
999px

Console