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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

              
                img(src="https://images.unsplash.com/photo-1612614504786-b613921fab0a?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=300&ixid=MXwxfDB8MXxyYW5kb218fHx8fHx8fA&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=300")
              
            
!

CSS

              
                *
  box-sizing border-box
  
body
  min-height 100vh
  display grid
  place-items center
  background hsl(210, 34%, 24%)
  
img
  height 300px
  width 300px
  object-fit cover
  clip-path path("M44.875 231.875L62.5 249.5L85 227.125L67.25 209.375L44.875 231.875ZM138 280.75C142 280.75 163 280.75 163 280.75V243.875H138V280.75ZM150.5 68.875C130.609 68.875 111.532 76.7768 97.467 90.842C83.4018 104.907 75.5 123.984 75.5 143.875C75.5 163.766 83.4018 182.843 97.467 196.908C111.532 210.973 130.609 218.875 150.5 218.875C170.391 218.875 189.468 210.973 203.533 196.908C217.598 182.843 225.5 163.766 225.5 143.875C225.5 102.375 191.875 68.875 150.5 68.875ZM250.5 156.375H288V131.375H250.5V156.375ZM216 227.125L238.5 249.5L256.125 231.875L233.75 209.375L216 227.125ZM256.125 55.875L238.5 38.25L216 60.625L233.75 78.375L256.125 55.875ZM163 7H138V43.875H163V7ZM50.5 131.375H13V156.375H50.5V131.375ZM85 60.625L62.5 38.25L44.875 55.875L67.25 78.375L85 60.625Z")

  
  
              
            
!

JS

              
                
              
            
!
999px

Console