Forum Moderators: not2easy
<table width=100% border=0>
<tr><td colspan="2">title description</td></tr>
<tr><td style="width:70%">foo</td><td>bar</td>
</table>
my question is, only one <td> is assigned a width...will the rest of <td>s lay accordingly? i.e. will the page be displayed as
<tr><td colspan="2" width="100%">title description</td></tr>
<tr><td style="width:70%">foo</td><td style="width:30%">bar</td>
i'm trying to cut down the number of bytes, and thought this might work. i've tested on FF, and it does seem to work well. but...is this the correct way? or is it even right to do so?
In the second example, the width of your top row will be 100%; but 100% of what? Move the 100% to <table>, as in the first example, and the two examples will display identically.
For the second row of the second example, you only need to give the width for one of the two cells. The other will be calculated automatically.
Is it a whopping difference? Probably not, but if you're looking to trim it down you may as well go all the way...