title: How do you make a CSS-defined table-cell scroll?
body: <p>I want to be able to set the height of the table, and force the cells to scroll individually if they are larger than the table.  </p>
  
  <p>Consider the following code: (see it in action <a href="http://www.angryoctopus.net/Proof/HTMLPage.htm" rel="nofollow noreferrer">here</a>)</p>
  
  <pre><code>&lt;div style="display: table; position: absolute;
      width: 25%; height: 80%; min-height: 80%; max-height: 80%;
      left: 0%; top: 10%; right: 75%; bottom: 10%; border: solid 1px black;"&gt;
      &lt;div style="display: table-row;"&gt;
          &lt;div style="display: table-cell; border: solid 1px blue;"&gt;
              {Some dynamic text content}&lt;br/&gt;
              This cell should shrink to fit its contents.
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div style="display: table-row;"&gt;
          &lt;div style="display: table-cell; border: solid 1px red;
              overflow: scroll;"&gt;
              This should only take up the remainder of the table's vertical space.
              This should only take up the remainder of the table's vertical space.
              This should only take up the remainder of the table's vertical space.
              This should only take up the remainder of the table's vertical space.
              This should only take up the remainder of the table's vertical space.
              This should only take up the remainder of the table's vertical space.
              This should only take up the remainder of the table's vertical space.
              This should only take up the remainder of the table's vertical space.
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>If you open this code (in IE8, in my case) you'll notice that the second cell fits in the table nicely when the browser is maximized. In theory, when you shrink the browser (forcing the table to shrink as well), a vertical scrollbar should appear INSIDE the second cell when the table becomes too small to fit all of the content. But in reality, the table just grows vertically, beyond the bounds set by the CSS <code>height</code> attribute(s).  </p>
  
  <p>Hopefully I've explained this scenario adequately...  </p>
  
  <p>Does anyone know how I can get this to work?</p>