Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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>
  <h1>I am da header</h1>
</header>
<div class="section-1">
  <h1>I am Section 1</h1>
</div>
<div class="section-2">
  <h1>I am Section 2</h1>
  <p>Check this out it is pretty cool!</p>
</div>
<div class="section-3">
  <h1>I am Section 3</h1>
</div>
<footer>
  <h1>I am da footer</h1>
</footer>
              
            
!

CSS

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

$deg: -2deg
$blue: #24C5E2
$orange: #FA9B4E
$green: #D9E07A


body
  padding: 0
  margin: 0
  font-family: 'Oswald', sans-serif
  font-weight: 300
  background-color: $green

footer,header
  background-color: $blue
  padding: 10px
  color: #fff
  text-align: center

header 
  
  padding: 10px
  color: #000
  
  
 
h1 
  font-weight: 300
p
  font-family: 'Open Sans'

.section-1
  background-color: $green
  color: #000
  padding: 50px
  h1 
    text-align: left
  
.section-2
  background-color: $orange
  color: #fff
  padding: 20px 
  transform: skewY($deg)
  margin-top: -25px
  //border-top: 5px solid #ccc
  
  h1,p 
    text-align: center
    transform: skewY(-$deg)

.section-3
  background-color: $green
  padding: 50px
  h1
    text-align: right
  
   

              
            
!

JS

              
                
              
            
!
999px

Console