title: How can I get a div to stick to the bottom of the screen and have the middle content scroll?
body: <p>I'm trying to have a sticky footer, where the footer is ALWAYS visible and docked to the bottom, while the middle content will scroll as content is added to it.  I am using this method of accomplishing that: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>/* Reset */
  
  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  
  /* Essentials */
  
  .container {
    display: table;
  }
  
  .content {
    display: table-row;
    height: 100%;
  }
  
  .content-body {
    display: table-cell;
  }
  
  .scroller {
    max-height: 100%;
    overflow-y: auto;
  }
  
  
  /* Aestetics */
  
  .container {
    width: 100%;
    height: 100%;
  }
  
  .header,
  .footer {
    padding: 10px 20px;
    background: #f7f7f7;
  }
  
  .scroller {
    padding: 20px;
    background: #e7e7e7;
  }
  
  p {
    margin-top: 0;
    margin-bottom: 1rem;
  }
  
  p:last-child {
    margin-bottom: 0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;header class="header"&gt;
      &lt;p&gt;This is the header&lt;/p&gt;
    &lt;/header&gt;
    &lt;section class="content"&gt;
      &lt;div class="content-body"&gt;
        &lt;div class="scroller"&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
          &lt;p&gt;This is the content.&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/section&gt;
    &lt;footer class="footer"&gt;
      &lt;p&gt;This is the footer.&lt;/p&gt;
    &lt;/footer&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This works great for Chrome and FF but does not work in IE.  Is there a simple fix for this in IE or does someone know of a better solution?</p>