[thelist] formatting tables with css

Hassan Schroeder hassan at webtuitive.com
Wed Oct 2 12:25:01 CDT 2002


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

For the "cellspacing" replacement, see the border-collapse and
border-spacing properties:

<http://www.w3.org/TR/REC-CSS2/tables.html#propdef-border-collapse>
<http://www.w3.org/TR/REC-CSS2/tables.html#propdef-border-spacing>

Cellpadding is just padding on the TD.

HTH!
--
H*
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

     -- creating dynamic Web sites and applications since 1994 --






More information about the thelist mailing list