title: Table row height in Internet Explorer
body: <p>I have the following table:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;td style="height: 7px; width: 7px"&gt; A1 &lt;/td&gt;
          &lt;td style="height: 7px"&gt; B1 &lt;/td&gt;
          &lt;td style="height: 7px; width: 7px"&gt; C1 &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td style="width: 7px"&gt; A2 &lt;/td&gt;
          &lt;td&gt; B2 &lt;/td&gt;
          &lt;td style="width: 7px"&gt; C2 &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td style="height: 7px; width: 7px"&gt; A3 &lt;/td&gt;
          &lt;td style="height: 7px"&gt; B3 &lt;/td&gt;
          &lt;td style="height: 7px; width: 7px"&gt; C3 &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>The basic idea is that the first row must be 7 pixels high. The left- and rightmost cells (A1 and C1) must be 7px wide, and the middle cell (B1) must scale according to the width of the table. The same goes for the bottom row (A3, B3, C3).</p>
  
  <p>The middle row, however, needs to scale in height - in other words, it needs to be <code>(tableheight - 14px)</code>. The left- and rightmost cells (A2, C2) need to be 7 pixels wide.</p>
  
  <p>An example:</p>
  
  <pre><code>             7px              x               7px
            |------|-------------------------|------|
  
  ---       +------+-------------------------+------+
   |        |      |                         |      |
   | 7px    |      |                         |      |
   |        |      |                         |      |
  ---       +------+-------------------------+------+
   |        |      |                         |      |
   |        |      |                         |      |
   |        |      |                         |      |
   |        |      |                         |      |
   | y      |      |                         |      |
   |        |      |                         |      |
   |        |      |                         |      |
   |        |      |                         |      |
   |        |      |                         |      |
  ---       +------+-------------------------+------+
   |        |      |                         |      |
   | 7px    |      |                         |      |
   |        |      |                         |      |
  ---       +------+-------------------------+------+
  </code></pre>
  
  <p>HOWEVER: In Internet Explorer, the widths work fine (columns A and C are 7px, column B scales dynamically) - but the heights don't. Rows 1, 2 and 3 turn out to be exactly 33% of the height of the table, no matter what I do. Unfortunately I have to use this table, so replacing it with a set of DIVs is not an option.</p>
  
  <p>I have the following DOCTYPE:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  </code></pre>
  
  <p>I need to keep this, as some other elements on the page rely on some complex CSS-based layouts.</p>
  
  <p>Can anyone point me in the right direction to whip this into shape for IE?</p>
  
  <p>EDIT: Should have mentioned earlier - this table is resized on the fly using javascript.</p>