Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here is a go at your issue using primarily jQuery. </p> <p><a href="http://jsfiddle.net/uyEuN/4/" rel="nofollow">http://jsfiddle.net/uyEuN/4/</a></p> <p><strong>JavaScript</strong> </p> <pre><code>function resolveFullHeight() { $("#fullHeight").css("height", "auto"); var h_window = $(window).height(), h_document = $(document).height(), fullHeight_top = $("#fullHeight").position().top, est_footerHeight = 112; var h_fullHeight = (-1 * (est_footerHeight + (fullHeight_top - h_document))); $("#fullHeight").height(h_fullHeight); } resolveFullHeight(); $(window).resize(function () { resolveFullHeight(); }); </code></pre> <p>I have left the <strong>HTML</strong> alone for the most part, except for adding this div beneath the navbar. </p> <pre><code>&lt;div class="spacer-fluid-60"&gt;&lt;/div&gt; </code></pre> <p>The <strong>CSS</strong> includes new rules for setting the height of the <code>.spacer-fluid-60</code> div, and I also removed the <code>padding-top</code> rule for the <code>body</code> element. Investigate the jsfiddle for complete details.</p> <p>In the HTML, I have added a number of duplicate filler paragraphs, and have left the majority of them commented out. Un-comment them out as necessary to play around with variations of the content height in the <code>#fullHeight</code> element and see if it still behaves as you intend it to. The minimal testing I have done so far suggests this will work.</p> <p>Note: add some <a href="http://remysharp.com/2010/07/21/throttling-function-calls/" rel="nofollow">throttling</a> to reduce the number of times the function gets called while scrolling.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload