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 class="neato-header">
  <h2>Your Subtitle</h2>
  <h1>Your Headline</h1>
</div>
              
            
!

CSS

              
                @import compass

html , body
  overflow: hidden
  position: absolute
  height: 100%
  width: 100%
  left: 0
  top: 0

html
  background-image: url( https://unsplash.imgix.net/photo-1423683249427-8ca22bd873e0?fit=crop&fm=jpg&h=700&q=75&w=1050 )
  background-position: center center
  background-size: cover
  
body
  background-color: rgba( 0, 0, 0, 0.1 )
 
.neato-header
  @include translate( -50% , -50% )
  color: white
  min-width: 50%
  padding: 30px
  text-align: center
  position: absolute
  left: 50%
  top: 50%
  
  border: 3px solid white
  border-top: none
  
  h1 , h2
    letter-spacing: 0.05em
  
  h1
    font-size: 65px
    font-family: 'Open Sans Condensed'
    text-transform: uppercase
    
  h2
    @include translate( 0 , -50% )
    font-family: 'Vollkorn'
    font-weight: italic
    font-size: 21px
    overflow: hidden
    margin: -30px -33px 0 -33px
    position: absolute
    width: calc( 100% + 6px )
    
    &:before , &:after
      content: ""
      position: absolute
      width: 100%
      margin-top: -2px
      border-top: 3px solid white
      top: 50%
    
    &:before
      @include translate( -100% , 0 )
      margin-left: -30px
      
    &:after
      margin-left: 30px
      
              
            
!

JS

              
                
              
            
!
999px

Console