I can't believe this is stumping me but it is...
I'm trying to create a table that looks a bit like this:
What I'm trying to do is justify Cell 2 to the top of column 3 and Cell 3 to the bottom, no matter how tall the table gets. Cells 2 & 3 must stay at their original heights, with the spacer cell between ("V Spc") them growing and shrinking as required.
As you can see in the code below, I've tried to tell the "V Spc" cell to take up all the vertical space it can by setting its height to 100%, which should squeeze Cells 2 & 3 to the vertical extents of the table, but it doesn't seem to be working and I can't figure out why not.
Can anyone help?
I'm trying to create a table that looks a bit like this:
Code:
+++++++++++++++++++++++++++++++++++++++++++
+ Cell 1 + + Cell 2 +
+ Determines + + Grow/ +
+ Table + + Srink +
+ height + + +
+ + +++++++++++++++++
+ + H + V spc +
+ + Spc + Expand +
+ + +++++++++++++++++
+ + + Cell 3 +
+ + + Grow/ +
+ + + Shrink +
+++++++++++++++++++++++++++++++++++++++++++
What I'm trying to do is justify Cell 2 to the top of column 3 and Cell 3 to the bottom, no matter how tall the table gets. Cells 2 & 3 must stay at their original heights, with the spacer cell between ("V Spc") them growing and shrinking as required.
As you can see in the code below, I've tried to tell the "V Spc" cell to take up all the vertical space it can by setting its height to 100%, which should squeeze Cells 2 & 3 to the vertical extents of the table, but it doesn't seem to be working and I can't figure out why not.
Can anyone help?
Code:
<table border>
<tr>
<td valign="top" rowspan=3 width=200>Item 1 - determines table height<br><img src="spacer.gif" width=1 height=300></td>
<td rowspan=3 width=30>H Spc</td>
<td valign="top" width=100>Item 2 - Grow/shrink</td>
</tr>
<tr>
<td height="100%">V Spc - Expand</td>
</tr>
<tr>
<td valign="bottom">Item 3 - Grow/shrink</td>
</tr>
</table>