Sunday December 29, 2002
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 |
Posted in The Web
at Dec 29 2002, 06:58:14 AM MST
3 Comments
Search This Site
Recent Entries
- Wine Tasting in Napa Valley
- How to build a Shot-Ski
- Bus Project Update
- Farewell to the 2011-2012 Ski Season
- Cruising around the Western Caribbean
- Spring Break!
- A Spectacular Trip to Stockholm and Madrid
- Comparing Web Frameworks and HTML5 with Play Scala at Jfokus 2012
- Play Framework 2.0 with Peter Hilton at Jfokus
- Secure JSON Services with Play Scala and SecureSocial
<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 04:32 PM MST #
Posted by Danman on December 29, 2002 at 04:42 PM MST #
Posted by Matt Raible on December 29, 2002 at 09:44 PM MST #