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
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
Search This Site
Recent Entries
- What's Next
- Jack's Mohawk
- LinkedIn Cuts 10% (a.k.a. The Journey is Over)
- Happy Birthday Abbie!
- Moving from Spring's XML to Annotations in AppFuse
- Free Maven Training in New Orleans on Election Day
- AppFuse Light ยป AppFuse, Maven Archetypes and Shared Web Assets
- Great Weekend in Montana
- Colorado Software Summit 2008 Wrapup
- RESTful Web Applications with Subbu Allamaraju
<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 03:32 PM MST #
Posted by Danman on December 29, 2002 at 03:42 PM MST #
Posted by Matt Raible on December 29, 2002 at 08:44 PM MST #