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>
  <h1>Everybody loves full width faux-parallax</h1>
</header>
<div class="content">
  <h1>Title 1</h1>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis eget quam ac ipsum molestie aliquam. Sed blandit leo dui, ac sollicitudin orci molestie nec. Aenean faucibus, eros id vulputate tristique, tortor lectus mattis arcu, a dapibus libero velit vitae nunc. In hac habitasse platea dictumst. Aliquam at ipsum quis erat eleifend convallis. Pellentesque leo eros, sagittis eu dolor sit amet, dignissim posuere orci. Aliquam sit amet congue sapien. Fusce fermentum erat sit amet magna blandit gravida. Nam et ligula tincidunt, adipiscing dolor nec, dignissim metus. Nam lorem massa, tempor nec semper ac, imperdiet sit amet libero. In fermentum arcu non purus cursus, at auctor tortor blandit. Duis vel arcu a massa auctor mattis.</p>
</div>
<div class="mid"></div>
<div class="content">
  <h1>Title 2</h1>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis eget quam ac ipsum molestie aliquam. Sed blandit leo dui, ac sollicitudin orci molestie nec. Aenean faucibus, eros id vulputate tristique, tortor lectus mattis arcu, a dapibus libero velit vitae nunc. In hac habitasse platea dictumst. Aliquam at ipsum quis erat eleifend convallis. Pellentesque leo eros, sagittis eu dolor sit amet, dignissim posuere orci. Aliquam sit amet congue sapien. Fusce fermentum erat sit amet magna blandit gravida. Nam et ligula tincidunt, adipiscing dolor nec, dignissim metus. Nam lorem massa, tempor nec semper ac, imperdiet sit amet libero. In fermentum arcu non purus cursus, at auctor tortor blandit. Duis vel arcu a massa auctor mattis.</p>
</div>
<footer></footer>
              
            
!

CSS

              
                * { margin:0; padding:0; font-family: Verdana, Helvetica, sans-serif; }

header {
  height:300px;
  width:100%;
  background:url('http://lorempixel.com/nature/1000/500') center center fixed tomato;
  background-blend-mode:multiply;
  background-size:cover;
  padding:75px 0 0 0;
  box-sizing:border-box;
  & h1 {
    display:block;
    width:50%;
    margin:auto;
    text-align:center;
    font-size:50px;
    color:white;
  }
}


.mid {
  height:300px;
  width:100%;
  background:url('http://lorempixel.com/nature/1000/600') center center fixed;
  background-size:cover;
}


footer {
  height:150px; 
  width:100%;
  background:url('http://lorempixel.com/nature/1000/550') center center fixed;
  background-size:cover;
}

.content {
  width:70%;
  margin:auto;
  padding:100px 0 100px 0; 
}
              
            
!

JS

              
                
              
            
!
999px

Console