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 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

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

              
                <footer id="sticky">
  
  <!--containers for footer content-->
  <div class="container siteNav">
    <nav><span style="border-bottom:2px solid">Site Nav</span>
      <ul>
        <li>
          <a>Home</a>
        </li>
        <li>
          <a>Here</a>
        </li>
        <li>
          <a>There</a>
        </li>
        <li>
          <a>Away</a>
        </li>
      </ul>
    </nav>
  </div>
  
  <div class="container contact">
    <h4>--- Contact Us! ---</h4>
    <a>email@mail.com</a>
    <address>
      123 Street<br/>
      Anywhere, USA</br>
      1.800.555.6666
    </address>
  </div>
  
  <div class="container cta">
    <h4>Want more info?</br>
    Click below!</h4>
    <button>Learn More!</button>
  </div>
  
</footer>
              
            
!

CSS

              
                body {
  margin:0; /*gets rid of white space around body*/
  height:200vh;
  position:relative; /*REQUIRED Sets up positioning for your footer*/
}

#sticky {
  width:100%;
  padding:20px;
  padding-bottom:4px;
  background:black;
  color:white;
  font-weight:bold;
  font-size:18px;
  position:fixed;    /*Here's what sticks it*/
  bottom:0;          /*to the bottom of the body*/
  left:0;            /*and to the left of the body.*/
  
  text-align:center; /*this will center the containers*/
}

#sticky * {
  margin:0;
  padding:0;
}

#sticky .container {
  display:inline-block; /*required for centering containers and allowing wrap*/
  margin-bottom:16px;
  width:20%; /*relative unit for responsive design*/
  min-width:150px; /*containers won't get smaller than 200px*/
  vertical-align:top;
}

/*----------------------------------------------------------*/
/*nothing below is necessary; it's just for styling purposes*/
/*----------------------------------------------------------*/

#sticky .container nav span {
  display:inline-block;
  margin-bottom:8px;
}

#sticky li {
  list-style:none;
}

#sticky .container h4 {
  margin-bottom:8px;
}

#sticky .cta button {
  margin-top:16px;
  padding:12px 20px;
  background:white;
  font-weight:bold;
  border:none;
  border-radius:8px;
  cursor:pointer;
  position:relative;
}
#sticky .cta button:focus {
  outline:none;
}
#sticky .cta button:active {
  top:4px
}
              
            
!

JS

              
                
              
            
!
999px

Console