Pen Settings



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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <div class="page-wrapper">
  <div class="page-body">
      Basic Layout Pattern: 
        Bottom Positioned Footer (without flexbox)
    <p><em>Footer is at bottom if content is short but scrolls with longer content.</em></p>
	  <p>Parent elements have 100% height. Immediate parent has min-height 100% instead and bottom padding to reserve space for footer.</p>
    <p><strong>NOTE:</strong> This is a classic non-flexbox layout pattern. Using flexbox is preferable in most cases if you have that option.</p>
  <footer class="page-footer">
    My footer


                // Essential layout styles:
body {margin: 0;}

* {box-sizing: border-box;}

html, body {height: 100%;}

.page-wrapper {
  min-height: 100%;
  padding-bottom: 3em; // space for footer
  position: relative;

.page-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

// Extra prettification ----
.page-body, .page-footer {padding: 0.8em;}
.page-footer {background: #315B7E; color: #fff;}
h1 {margin: 0; padding-bottom: 0.15em; line-height: 1.1; border-bottom: 1px solid; small {display: block;} } body {font-family: Georgia; font-size: 16px; background: #D8EEFE;} h1 + p {margin-top: .5em;} p:last-child {margin-bottom: 0;}