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 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

              
                div
  ul
    li Hello, world!
    li Hello, world!
    li Hello, world!
              
            
!

CSS

              
                $bg_color: #def 
$color: #567 

html, body
  margin: 0
  padding: 0
  
div
  display: flex
  justify-content: center
  align-items: center
  height: 100vh
  
ul
  list-style-type: none
  font-family: sans-serif
  padding: 0
  
  li
    background-color: $bg_color
    color: $color
    padding: 7px 20px
    position: relative
    font-size: 1em
    line-height: 2em
    margin: 10px 0 50px
    border-radius: 5px
    
    &:after,
    &:before
      content: '' 
      position: absolute
      height: 0
      bottom: -10px
      left: calc(50% - 15px)
      border-left: 1em solid transparent
      border-right: 1em solid transparent
    &:after
      bottom: -25px
      border-top: 1em solid white
      z-index: 1
    &:before
      z-index: 2
      border-top: 1em solid $bg_color
  
              
            
!

JS

              
                
              
            
!
999px

Console