Click to See Complete Forum and Search --> : override the colspan of tables?


ck_bullet
03-23-2005, 11:47 AM
when you have something like this:

<table cellspacing="0" cellpadding="0" border="0>
<tr><td></td></tr>
<tr><td></td><td></td><td></td></tr>
</table>

the table is automatically divided into 3 columns. all columns hold img's, and if you leave out colspan attribute in the td's, the img in the first row is placed in the 1st column. i want that img to span across all the columns without using the colspan attribute because the number of td's in the 2nd row is never the same. so whenever i change the number of td's in the 2nd row i have to change the colspan in the first row. i dont want to use div's, i need tables. i want to use the width attribute for each of the td's, but it wont size correctly unless i use colspan. any suggestions?

Charles
03-23-2005, 03:01 PM
Originally posted by ck_bullet
any suggestions? Stop using TABLEs for layout. Use CSS.