Click to See Complete Forum and Search --> : Need Help Controlling Table Height Defaults


winsave11
12-11-2002, 10:12 AM
<table width="500" border>
<tr>
<td width=250 height=10>A</td>
<td rowspan=2><font size=8>B and more B of undetermined amount</td>
</tr>
<tr><td>C</td></tr>
</table>


This is the problem I am having. The Col B is going to be large but not set at a specific amount. I would like TD C to expand with it, not TD A. I have placed a height= in A to try and constrain but it does not work. Any solutions?

Thanks
MP

Stefan
12-11-2002, 11:45 AM
Originally posted by winsave11

This is the problem I am having. The Col B is going to be large but not set at a specific amount. I would like TD C to expand with it, not TD A. I have placed a height= in A to try and constrain but it does not work.
Any solutions?


The obvious solution is to stop abusing <table> for creating general page layout and use CSS instead.
Eg this will do something along the lines of what you want:

<div style="float:left; width:250px">col A</div>
<div>
<div style="float:left; width:60%;">col B</div>
col C
</div>