[thelist] formatting tables with css

lon.kraemer lwkraemer at directvinternet.com
Wed Oct 2 11:29:01 CDT 2002

> I can control all the elements of the table tag as I would have done
> HTML in css, i.e:
> <table border="0" width="700px" align="center">
> etc, except for two rather important ones - cellspacing and
> How are these controlled in css, if they can be?

cellpadding is controlled by simple CSS padding:
td {padding:5px;}

cellspacing has no CSS equivalent (yet). Keep cellspacing="0" in your
table tag (unless the browser default is tolerable).

Lon Kraemer

More information about the thelist mailing list