Connecting Tech Pros Worldwide Forums | Help | Site Map

CSS replacement for table cellspacing?

Aaron
Guest
 
Posts: n/a
#1: Jul 20 '05
Hi,

Is there a way to do table cellspacing with CSS?

Thanks,
Aaron


Els
Guest
 
Posts: n/a
#2: Jul 20 '05

re: CSS replacement for table cellspacing?


Aaron wrote:
[color=blue]
> Is there a way to do table cellspacing with CSS?[/color]

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

Don't know about browser support.


--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Steve Pugh
Guest
 
Posts: n/a
#3: Jul 20 '05

re: CSS replacement for table cellspacing?


Els <els.aNOSPAM@tiscali.nl> wrote:[color=blue]
>Aaron wrote:
>[color=green]
>> Is there a way to do table cellspacing with CSS?[/color]
>
>http://www.w3.org/TR/2004/CR-CSS21-2...arated-borders
>
>Don't know about browser support.[/color]

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 <steve@pugh.net> <http://steve.pugh.net/>
Brian
Guest
 
Posts: n/a
#4: Jul 20 '05

re: CSS replacement for table cellspacing?


Steve Pugh wrote:
[color=blue]
> If an equivalent to cellspacing="0" is wanted then border-collapse:
> collapse; has the same effect even in IE.[/color]

(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/
DU
Guest
 
Posts: n/a
#5: Jul 20 '05

re: CSS replacement for table cellspacing?


Aaron wrote:
[color=blue]
> Hi,
>
> Is there a way to do table cellspacing with CSS?
>
> Thanks,
> Aaron
>[/color]

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
Els
Guest
 
Posts: n/a
#6: Jul 20 '05

re: CSS replacement for table cellspacing?


DU wrote:
[color=blue]
> 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[/color]

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 vão. O resto é imperfeito.
- Renato Russo -

Closed Thread