Collapsing table cells?
Posted: Wed Jun 13, 2007 11:57 pm
Tricky table problem.
I have the following:
By applying the colspan in cell C the two cells above it are width calculated in half. Each is 50% the width of the of cell C
I cannot use width="100%" in cell A but that is the effect I am after. Actually to be exact I want cell B to automatically adjust to it's contents size, as I am already using width="100%".
Is this desired collasping effect possible?
I have the following:
Code: Select all
<table width="100%">
<tr>
<td>A</td>
<td>B</td>
</tr>
<tr>
<td colspan="2">C</td>
</tr>
</table>I cannot use width="100%" in cell A but that is the effect I am after. Actually to be exact I want cell B to automatically adjust to it's contents size, as I am already using width="100%".
Is this desired collasping effect possible?