March 16, 201016 yr Hey I have a table where the first row just has one cell in and the row below it has two cells in. I want the cell on the first row to be the lenght of the entire table but because there are two cells underneath it puts it as the same width as the first cell of the second row. How can I get rid of this problem? <table width="500" border="1" cellspacing="1px" cellpadding="1px"> <tr> <td class="header">cell 1</td> </tr> <tr> <td>cell 1</td> <td class="blue">cell 2</td> </tr> </table> Thanks for any help
March 16, 201016 yr To make the cell in the top row the same width as the table add colspan: <td colspan="2" class="header">cell 1</td>
Create an account or sign in to comment