CSS and border-collapse property
I can't seem to get the border-collapse property to work on my tables. Basically, I should be able to specify a border and border-collapse: collapse on a table and this border will be applied to all cells. But I can't get it to work - any ideas? Here's an example:
<table width="300" style="border: 1px solid black; border-collapse: collapse"> <tr> <th> </th> </tr> <tr> <td>this cell should have a top border<td> </tr> </table>
And here's that same table without the HTML escaped:
this cell should have a top border |
<table width="300" border="0" style="border-collapse: collapse"> <tr> <th style="border: 1px solid black">&nbsp;</th> </tr> <tr> <td style="border: 1px solid black">this cell should have a top border</td> </tr> </table> If I'm wrong, I hope someone will correct me.
Posted by Danman on December 29, 2002 at 10:32 PM MST #
Posted by Danman on December 29, 2002 at 10:42 PM MST #
Posted by Matt Raible on December 30, 2002 at 03:44 AM MST #