title: div with dynamic min-height based on browser window height
body: <p>I have three <code>div</code> elements: one as a header, one as a footer, and a center content <code>div</code>. <br/> the <code>div</code> in the center needs to expand automatically with content, but I would like a <code>min-height</code> such that the bottom <code>div</code> always at least reaches the bottom of the window, but is not fixed there on longer pages.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;div id="a" style="height: 200px;"&gt;
    &lt;p&gt;This div should always remain at the top of the page content and should scroll with it.&lt;/p&gt;
  &lt;/div&gt;
  &lt;div id="b"&gt;
    &lt;p&gt;This is the div in question. On longer pages, this div needs to behave normally (i.e. expand to fit the content and scroll with the entire page). On shorter pages, this div needs to expand beyond its content to a height such that div c will reach the bottom of the viewport, regardless of monitor resolution or window size.
  &lt;/div&gt;
  &lt;div id="c" style="height: 100px;"&gt;
    &lt;p&gt;This div needs to remain at the bottom of the page's content, and scroll with it on longer pages, but on shorter pages, needs to reach the bottom of the browser window, regardless of monitor resolution or window size.&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>