Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: not2easy
In short either margin or padding for the spacing issues and then border for ... well a border! Borders need to be defined by color, linetype and line thickness if you declare it all on one line (border : 1px solid black;)
I doubt you'll see much (if any) SEO advantage to that approach, and I don't think CSS can control the cellspacing at all. (…but I could be wrong there)
Good luck and have fun!
so if I wanted to replecate
<table cellspacing="0" cellpadding="0" border="0">
...any tips on going about that?
As with most things CSS, this won't work in Netscape 4.x or other older browsers.
Instead of looking at the box model, for this problem you would be more interested in the section entitled tables in the visual formatting model [w3.org]. Of course, you should learn the box model anyway ...
[edited by: tedster at 8:40 am (utc) on Nov. 13, 2002]
[edit reason] link fix [/edit]
A table should make sense with css turned off, so it is perfectly ok to use the table attributes of border, cellpadding etc.
CSS styles are supposed to override table attributes, so you can add and change presentation effects with css. (This doesn't always work perfectly, so you have to test.)
Will my CSS homework never stop?
Mine hasn't. We're all beginners at this: take a look at the CSS 3 Drafts [w3.org] if you don't believe me. ;)
BTW: If you are using Mozilla and hate the default style of the W3C's CSS site, check out View > Use Style on your browser menu. I think this option is also available in Opera, isn't it?