So I'm reading up on my CSS, and believe it or not I reckon I'm getting somewhere with it. One of the main reasons I wanted to get more comfortable with it is so that I can use it to design nice looking tables ... which is how I've stumbled across today's problem.
I've set up a two column, four row table with nice background colours, which is fine. The first column is only taking up 10% of the table (for an image) while the second column will be the dominant column, housing all the content.
The problem started when I wanted to add rounded corners to my table. Previously, I'd had my <th> set to a colspan of 2, as the table header wouldn't fit in the small first column.
However in order to add the four corner images, I've had to remove the colspan so that there are now two <th> tags each with a different class.
That means of course that the original problem has come back - I can't fit my table header into the small first column. Is there any way I can change the width of just the <th> cells without affecting the width of the <td> cells in the main part of the table.
The only way I can think of doing this is to give the table four columns and use colspans on each row to maintain width.
Is there a better way of doing things though?
Cheers,













LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks