title: CSS Sticky Footer - what if you have absolutely positioned divs on the page?
body: <p>I'm using this solution, which has worked for me before:</p>
  
  <p><a href="http://ryanfait.com/resources/footer-stick-to-bottom-of-page/" rel="nofollow noreferrer">http://ryanfait.com/resources/footer-stick-to-bottom-of-page/</a></p>
  
  <p>I'm currently working on a site, and it's not working. I think it's because I'm using absolute position on some divs on the page. Instead of sticking to the bottom of the page, the footer shows up under the header, on top of the absolutely positioned divs. How can I get sticky footer to work in this situation?</p>
  
  <pre><code>&lt;div id="wrap"&gt;
          &lt;div id="container"&gt;
  
              &lt;div id="myDiv"&gt;
                 ...content...
                 ... this div is absolutely positioned
              &lt;/div&gt;&lt;!-- END aboutText --&gt;
  
          &lt;/div&gt;&lt;!-- END container --&gt;
     &lt;div class="push"&gt;&lt;/div&gt;
  
  &lt;/div&gt;&lt;!-- END wrap --&gt;
  &lt;div id="footer"&gt;
      ...footer content
  &lt;/div&gt;
  </code></pre>
  
  <hr>
  
  <p>Actually it's working now. Not sure why - one of those CSS mysteries. Here's a related question though - How do you set a minimum browser height, so that when someone is resizing the browser (making it smaller), the footer stops moving up and covering the content?</p>
  
  <p>Edit - here's the CSS. The footer sticks to the bottom fine, but it covers the content divs on the page if the browser window is small.</p>
  
  <pre><code>html, body {
      height: 100%;
  }
  
  
  #wrap{
      width:950px;
      margin: 0 auto -80px;
      min-height: 100%;
      height: auto !important;
      height: 100%;
  
  }
  
  
  .push {
       height: 80px;
  
   }
  
  #footer{
       height: 80px;
       background-image:url(../images/img.jpg);
  
  }
  
  #container{
      position:relative;
  }
  
  
  
  #someDivWithinTheContainer{
      position:absolute;
      left:230px;
      top:300px;
  }
  </code></pre>