By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,723 Members | 1,655 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,723 IT Pros & Developers. It's quick & easy.

CSS replacement for table cellspacing?

P: n/a
Hi,

Is there a way to do table cellspacing with CSS?

Thanks,
Aaron

Jul 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Els
Aaron wrote:
Is there a way to do table cellspacing with CSS?


http://www.w3.org/TR/2004/CR-CSS21-2...arated-borders

Don't know about browser support.
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #2

P: n/a
Els <el*********@tiscali.nl> wrote:
Aaron wrote:
Is there a way to do table cellspacing with CSS?


http://www.w3.org/TR/2004/CR-CSS21-2...arated-borders

Don't know about browser support.


Pretty good in modern browsers, shame about Internet Explorer. :-(

If an equivalent to cellspacing="0" is wanted then border-collapse:
collapse; has the same effect even in IE. But for non-zero values it's
best to stick with the HTML attribute until IE catches up with the six
year old CSS2 spec.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3

P: n/a
Steve Pugh wrote:
If an equivalent to cellspacing="0" is wanted then border-collapse:
collapse; has the same effect even in IE.


(ahem) That's IE/Win. IE/Mac does not recognize border-collapse, thus
you must retain cesspacing="0" for that browser.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #4

P: n/a
DU
Aaron wrote:
Hi,

Is there a way to do table cellspacing with CSS?

Thanks,
Aaron


cellspacing
"The attribute also specifies the amount of space to leave between cells."
http://www.w3.org/TR/html401/struct/...ef-cellspacing

I'm surprised that no one answered you
border-spacing
"The 'border-spacing' property specifies the distance between the
borders of adjacent cells."
http://www.w3.org/TR/CSS2/tables.htm...border-spacing

DU
Jul 20 '05 #5

P: n/a
Els
DU wrote:
I'm surprised that no one answered you
border-spacing
"The 'border-spacing' property specifies the distance between the
borders of adjacent cells."
http://www.w3.org/TR/CSS2/tables.htm...border-spacing


I did. 45 hours and 27 minutes ago. But I referred to the
CSS 2.1 specs, where the name of the paragraph is 'seperated
borders'.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.