July 29th, 2002, 06:33 PM
Whats the CSS equivalent of "cellspacing"
I had this table on my site:
I want to change it to CSS:
<table border=0 width=750 cellpadding=0 cellspacing=0">
in my CSS file, what must I do to get the cellpadding and spacing to zero?
July 29th, 2002, 06:57 PM
CSS2 Has a table property called border-spacing which is the equivalent of the table attribute cellspacing. There's just one itty bitty problem: None of the major browers supports this property. That doesn't mean it won't work, it might, I haven't tried it but, I've seen things work in IE that weren't supposed to.
for more info:
Last edited by Tundra; July 29th, 2002 at 07:00 PM.
July 29th, 2002, 07:32 PM
for cellpadding it's:
you can also control the four sides individually with:
July 29th, 2002, 08:32 PM
July 30th, 2002, 01:43 PM
Yeah, the general rule is, it doesn't work everywhere. So don't count on it.