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="grid">
  <div class="grid-item header">header</div>
  <div class="grid-item main">main</div>
  <div class="grid-item nav">nav</div>
  <div class="grid-item aside">aside</div>
  <div class="grid-item footer">footer</div>
</div>

              
            
!

CSS

              
                *
  margin 0
  padding 0

html
body 
  height 100%
  
body
  font-family Arial, sans-serif
  color #666
  font-size 15px
  line-height 20px

.grid
  min-height 100%
  display grid
  grid-template-columns 1fr 3fr 1fr
  grid-template-rows 50px auto 100px
  grid-template-areas 'header header header' 'nav main aside' 'footer footer footer'
  grid-column-gap 10px
  grid-row-gap 15px
  padding 10px
  box-sizing border-box
  
.grid-item
  border 1px solid #e4e4e4
  text-align center
  
.header 
  grid-area header
  background linear-gradient(to bottom, rgba(245,50,252,0.5) 0%,rgba(91,222,255,0.5) 100%)
    
.main
  grid-area main
  background linear-gradient(to bottom, rgba(135,255,181,0.5) 0%,rgba(249,89,231,0.5) 100%)
    
.nav
  grid-area nav
  background linear-gradient(to bottom, rgba(135,255,181,0.5) 0%,rgba(249,89,231,0.5) 100%)
    
.aside
  grid-area aside
  background linear-gradient(to bottom, rgba(135,255,181,0.5) 0%,rgba(249,89,231,0.5) 100%)
    
.footer
  grid-area footer
  background linear-gradient(to top, rgba(245,50,252,0.5) 0%,rgba(91,222,255,0.5) 100%)
  
              
            
!

JS

              
                
              
            
!
999px

Console