title: How can I get a sticky footer on my WordPress theme?
body: <p>I'm trying to get my footer to stick to the bottom of my page. I've followed loads of different tutorials (most of them very similar) on sticky footers, but none of them have worked for me. For some reason the footer sticks to the bottom of the SCREEN instead of the PAGE... </p>
  
  <p>This is the layout of divs in my HTML:</p>
  
  <pre><code>&lt;div id="wrapper"&gt;
  &lt;div id="header"&gt;&lt;/div&gt;
  &lt;div id="main"&gt;&lt;/div&gt;
  &lt;div id="footer"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is my CSS:</p>
  
  <pre><code>html, body {
  height: 100%;
  
  #wrapper {
  min-height: 100%;
  position: relative;
  }
  
  #content {
  position: absolute;
  padding-bottom: 300px; (same as footer height)
  }
  
  #footer {
  width: 100%;
  height: 300px;
  position: absolute;
  bottom: 0px;
  }
  </code></pre>