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

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 class="header">Simple Header</header>
<main class="main">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis temporibus iusto, dolor, porro dolorum ratione obcaecati, id ut molestias praesentium molestiae! In harum delectus temporibus reprehenderit ipsum nisi deserunt adipisci a velit labore molestias doloremque doloribus eaque, quas omnis. Eligendi vitae fugiat accusamus dicta accusantium sunt, eveniet id. Fuga adipisci error necessitatibus laborum voluptates exercitationem soluta. Sint quasi fugit enim ad porro et aut eius, dicta!</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis temporibus iusto, dolor, porro dolorum ratione obcaecati, id ut molestias praesentium molestiae! In harum delectus temporibus reprehenderit ipsum nisi deserunt adipisci a velit labore molestias doloremque doloribus eaque, quas omnis. Eligendi vitae fugiat accusamus dicta accusantium sunt, eveniet id. Fuga adipisci error necessitatibus laborum voluptates exercitationem soluta. Sint quasi fugit enim ad porro et aut eius, dicta!</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis temporibus iusto, dolor, porro dolorum ratione obcaecati, id ut molestias praesentium molestiae! In harum delectus temporibus reprehenderit ipsum nisi deserunt adipisci a velit labore molestias doloremque doloribus eaque, quas omnis. Eligendi vitae fugiat accusamus dicta accusantium sunt, eveniet id. Fuga adipisci error necessitatibus laborum voluptates exercitationem soluta. Sint quasi fugit enim ad porro et aut eius, dicta!</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis temporibus iusto, dolor, porro dolorum ratione obcaecati, id ut molestias praesentium molestiae! In harum delectus temporibus reprehenderit ipsum nisi deserunt adipisci a velit labore molestias doloremque doloribus eaque, quas omnis. Eligendi vitae fugiat accusamus dicta accusantium sunt, eveniet id. Fuga adipisci error necessitatibus laborum voluptates exercitationem soluta. Sint quasi fugit enim ad porro et aut eius, dicta!</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis temporibus iusto, dolor, porro dolorum ratione obcaecati, id ut molestias praesentium molestiae! In harum delectus temporibus reprehenderit ipsum nisi deserunt adipisci a velit labore molestias doloremque doloribus eaque, quas omnis. Eligendi vitae fugiat accusamus dicta accusantium sunt, eveniet id. Fuga adipisci error necessitatibus laborum voluptates exercitationem soluta. Sint quasi fugit enim ad porro et aut eius, dicta!</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis temporibus iusto, dolor, porro dolorum ratione obcaecati, id ut molestias praesentium molestiae! In harum delectus temporibus reprehenderit ipsum nisi deserunt adipisci a velit labore molestias doloremque doloribus eaque, quas omnis. Eligendi vitae fugiat accusamus dicta accusantium sunt, eveniet id. Fuga adipisci error necessitatibus laborum voluptates exercitationem soluta. Sint quasi fugit enim ad porro et aut eius, dicta!</p>
</main>
 <footer class="footer">Sticky Footer</footer>  
              
            
!

CSS

              
                .footer {
  position: sticky;
  bottom: 0;  
  
  background-image: linear-gradient( 135deg, #EE9AE5 10%, #5961F9 100%);
}

html {
  box-sizing: border-box;
}

html *,
html *::after,
html *::before {
  box-sizing: inherit;  
}

body {
  font-family: tahoma;
  line-height: 1.6;
  margin: 0;
}

.header,
.footer {
  font-size: 2em;
  line-height: 5em;
  text-align: center;
  background-color: #1b1b1b;
  color: #fff;
}

.main {
  background: #eee;
  padding: 1em;
  position: relative;
  z-index: 1;
}

p {
  color: #ccc;
  max-width: 50em;
  margin: 1em auto;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  box-shadow: 0 1px 1px 0 hsla(0,0,0,.5);
}

              
            
!

JS

              
                
              
            
!
999px

Console