What is the css equivalent to cellspacing=0?
Printable View
What is the css equivalent to cellspacing=0?
or would that be valid with the standard?
I think that's the valid way.
If you add create a table like this ...
<html>
<body>
<table>
<td>
<tr style="font-face:arial; font-size:10pt; background:cyan;">Testing</tr>
<tr style="font-face:arial; font-size:10pt; background:#cyan"> Testing</tr>
</td>
</table>
</body>
</html>
... it appears to take off the cellspacing anyway.
Anyone else know cos I'd like to know too?
Thanks
Lee McCormick
http://www.dynamicallywebbed.com
[email protected]
You need to specify the padding for each side, and can specify it in pixels or percentages.Code:td
{
padding: 0px 0px 0px 0px
}
You could also just do it in the HTML page (if you're not using a referenced stylesheet). Eg.
Although as punkpie said, I think padding is zero by default.Code:<td style="padding: 0px 0px 0px 0px;">Your text</td>
Yeah, it does look like it sets padding by default to 0.
I had a look on the w3 schools site and it shows that using cellspacing is a valid way of creating the same effect.
http://www.w3schools.com/html/attr_table.asp
Thanks