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

              
                header#header_1
  div.flex-container
    h1.flex-item LOGO
    a.flex-item Menu1
    a.flex-item Menu2
    a.flex-item Menu3
    a.flex-item Menu4
header#header_2
  div.flex-container
    h1.flex-item LOGO
    nav.flex-item
      a Menu1
      a Menu2
      a Menu3
    button.flex-item Button
              
            
!

CSS

              
                header#header_1
  box-shadow: 0px 4px 4px rgba(0,0,0,0.3)
  background: #eee
  padding: 0 12px
  .flex-container
    display: flex
    align-items: center
    flex-wrap: wrap
    height: 60px
    h1.flex-item
      margin: 0 auto 0 0
      padding: 12px 24px
      background: #999
      color: white
      border-radius: 99em
    a.flex-item
      margin: 0 0 0 12px
      font-weight: bold
      font-size: 14px

header#header_2
  box-shadow: 0px 4px 4px rgba(0,0,0,0.3)
  background: #eee
  padding: 0 12px
  margin: 64px 0 0 0
  .flex-container
    display: flex
    justify-content: flex-end
    align-items: center
    flex-wrap: wrap
    height: 90px
    h1.flex-item
      margin: 0 auto 0 0
      padding: 12px 24px
      background: #999
      color: white
      border-radius: 99em
    nav.flex-item
      a
        display: inline-block
        margin: 4px 0 4px 12px
        font-weight: bold
        font-size: 14px
    button.flex-item
      padding: 12px
      margin: 4px 0 4px 12px
      background: dodgerblue
      border: none
      border-radius: 4px
      color: #fff
              
            
!

JS

              
                
              
            
!
999px

Console