Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

<table cellspacing="x"> in CSS?

0 views
Skip to first unread message

Andy Goldberg

unread,
Dec 7, 2001, 1:08:49 PM12/7/01
to
Does CSS have an equivalent to the cellspacing attribute of a table?

-Andy Goldberg

TJS

unread,
Dec 8, 2001, 12:15:03 PM12/8/01
to
It is supposed to be margin, however I find it does not work well in IE5.5

I have tried to use css margin in combination with a css display option to
collapse/expand table rows.
However, I find the cellspacing of the table does not go away even though
the margin is set to 0 px.

In netscape 6.2 the same solution works correctly.

Andy Goldberg wrote in message ...

petermcc

unread,
Dec 9, 2001, 11:34:58 AM12/9/01
to

"Andy Goldberg" <and...@spacelab.net> wrote in message
news:eMs2Mp0fBHA.2112@tkmsftngp03...

> Does CSS have an equivalent to the cellspacing attribute of a table?

<quote Roland Shaw>
margin, on the TD
NB, you'll need "border-collapse: collapse" on the TABLE too, I find...
</quote Roland Shaw>

HTH

PeterMcC


Bob Sampson

unread,
Feb 7, 2002, 12:48:49 PM2/7/02
to
Yes, but I do believe it must be in every TD tag, not sure.

td {padding:2px}

You can try:

table {padding:2px;}

and see if that works....

::BOB::

Rowland Shaw

unread,
Feb 8, 2002, 4:14:35 AM2/8/02
to
You need table { border-collapse: collapse; } and td { margin: 0px; } for
cellspacing. For cellpadding, add td { padding: 0px; }


"Bob Sampson" <b...@constructive-media.com> wrote...

0 new messages