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

              
                nav.short-menu
  li
    a.fa.fa-map-marker Maps
  li
    a.fa.fa-calendar News
  li
    a.fa.fa-camera Photos
  li
    a.fa.fa-search Search
              
            
!

CSS

              
                @import compass

@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400)

@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css)

*
  -webkit-box-sizing: border-box

html,body 
  padding: 0
  margin: 0
  
body
  background-color: #fff  
  font-family: 'Source Sans Pro', sans-serif
  font-size: 16px

.short-menu
  float: right
  margin-top: 50px
  
  li
    list-style: none
    background-color: #fff
    display: block
    float: left
    border-right: 1px solid rgba(0,0,0,.2)
      
    a
      font-size: 12px
      font-weight: 600
      text-transform: uppercase
      text-decoration: none
      letter-spacing: 0
      height: 64px
      color: #444
      line-height: 64px
      padding: 0 20px 0 0
      vertical-align: top
      width: 80px
      overflow: hidden
      display: block
      cursor: pointer  
      +transition(all .25s ease)
      
      &:before
        font-size: 32px
        font-weight: normal
        width: 80px
        height: 64px
        line-height: 64px
        text-align: center
        display: inline-block
          
        +transition(all .5s ease)
      
      &:hover
        width: 200px
        &:before
          width: 64px
              
            
!

JS

              
                
              
            
!
999px

Console