title: Div at bottom of window and adaptable height div
body: <p>Is there a way to get a div to always be at the bottom of the window, and another div to change its height to fill any space that it leaves, and that div will scroll if its content is too long. (I never want the window to scroll).</p>
  
  <p>This is best illustrated by a picture:</p>
  
  <p><a href="http://img401.imageshack.us/img401/3209/divs.png" rel="noreferrer">div layout http://img401.imageshack.us/img401/3209/divs.png</a></p>
  
  <p>The green div will always put itself at the bottom of the window, and the orange div will fill the gap. When the window is smaller, like in the right hand image, the orange div will be smaller and will scroll.</p>
  
  <p>The green div can be toggled. Sometimes the green div will have <code>display: none</code>, and then the orange div will stretch to the bottom. When the green div has <code>display: block</code> again, it will look like the picture again.</p>
  
  <p>It has to work in IE6.</p>
  
  <p>So far I can get the green div to go to the bottom by:</p>
  
  <pre><code>position: absolute;
  bottom: 0;
  </code></pre>
  
  <p>But I don't know how to get the orange div to do what I want.</p>