title: position absolute footer also follow scrolling
body: <p>We have a footer div with absolute position on the bottom. The parent is overflow <code>auto</code>. When you scroll the <code>.container</code>,  the <code>.footer</code> is also is scrolling. How to make the <code>.footer</code> div stay in place.</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>.container {
    background-color: red;
    width: 300px;
    height: 300px;
    overflow: auto;
    position: relative;
  }
  
  .footer {
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
    height: 20px;
    background-color: orange;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    START&lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt; 1
    &lt;br /&gt;END
    &lt;div class="footer"&gt;
      FOOTER
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Thanks in advance.</p>