title: How to get the height of a body element
body: <p>Here the total height of all <code>&lt;div&gt;</code>'s are 900 pixels, but the jQuery function returns the height of the body as 577 pixels. (If I remove the body CSS, it's working).</p>
  
  <p>Is there a solution for this problem?</p>
  
  <pre><code>$j(function() {
      alert($j("body").height());
  })
  
  html, body {
      height:100%;
  }
  
  &lt;div style="height:200px"&gt;header&lt;/div&gt;
  &lt;div style="height:500px"&gt;content&lt;/div&gt;
  &lt;div style="height:200px"&gt;footer&lt;/div&gt;
  </code></pre>