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

cellspacing/cellpadding with css?

0 views
Skip to first unread message

Daniel Barisch

unread,
Jul 9, 2002, 7:40:11 AM7/9/02
to
Is there a possibilty to define the cellspacing/cellpadding-properties of a
table with css instead of using the tag-attributes? I can't find anything
working the way i want.

Thanks,
D.Barisch


PatrickN

unread,
Jul 10, 2002, 9:37:41 AM7/10/02
to
I haven't tried this but give it a shot if you haven't already:

td
{
margin: <your choice>;
padding: <your choice>;
}


"Daniel Barisch" <dbar...@hotmail.com> wrote in message
news:eq$XNTzJCHA.2660@tkmsftngp09...

Daniel Barisch

unread,
Jul 10, 2002, 11:20:05 AM7/10/02
to
That's syntax I also expected to work, but it doesn't! It only affects the
margin and padding of the elments inside the cell, but it does not affect
the space between themselves.

"PatrickN" <REplna...@yahoo.com> schrieb im Newsbeitrag
news:OFVxxbBKCHA.2448@tkmsftngp11...

Tek Boy

unread,
Jul 10, 2002, 12:12:59 PM7/10/02
to
Try this out. I added the colors and took out the BODY margins to make it a
bit clearer that modifying the value of "table { margin ...; }" does, in
fact, do something. =)

-=Tek Boy=-

===================================

<html><head>
<STYLE>
body { margin:0px; background-color:blue; }
table { margin:50px; }
</STYLE></head><body>

<table bgcolor="#FF0000" border="0">
<tr>
<td>Hi</td>
<td>There</td>
</tr>
<tr>
<td>Just</td>
<td>Testing</td>
</tr>
</table>

</body></html>

===================================


"Daniel Barisch" <dbar...@hotmail.com> wrote in message

news:#qdGoyBKCHA.2508@tkmsftngp12...

Daniel Barisch

unread,
Jul 11, 2002, 3:22:29 AM7/11/02
to
Good Morning!

Thank you for your help, but it also doesn't work the way I want. I want to
change the space between the certain cells of one Table, not the space
beetween all cells and the border of the table.

"Tek Boy" <tekb...@nospam.hotmail.com> schrieb im Newsbeitrag
news:OIGSCxCKCHA.2288@tkmsftngp12...

Rowland Shaw

unread,
Jul 11, 2002, 6:35:55 AM7/11/02
to
Ah, there's a trick to getting it to work; you need to set border-collapse:
collapse; on the table in additon.

See also:
http://groups.google.com/groups?q=cellspacing+css+rowland+shaw&ie=UTF-8&oe=U
TF-8&hl=en


"Daniel Barisch" <dbar...@hotmail.com> wrote...


> That's syntax I also expected to work, but it doesn't! It only affects the
> margin and padding of the elments inside the cell, but it does not affect
> the space between themselves.
>

> "PatrickN" <REplna...@yahoo.com> schrieb...


> > I haven't tried this but give it a shot if you haven't already:
> >
> > td
> > {
> > margin: <your choice>;
> > padding: <your choice>;
> > }
> >
> >

> > "Daniel Barisch" <dbar...@hotmail.com> wrote...

Daniel Barisch

unread,
Jul 11, 2002, 8:09:13 AM7/11/02
to
I'm very sorry, but it DOES NOT Work, also with setting border-collapse to
collapse!

"Rowland Shaw" <spamf...@anotherpointless.org> schrieb im Newsbeitrag
news:##eleaMKCHA.1620@tkmsftngp10...

Rowland Shaw

unread,
Jul 11, 2002, 8:10:14 AM7/11/02
to
Odd. Works for me.

Do you have an example URL that demonstrates it not working?


"Daniel Barisch" <dbar...@hotmail.com> wrote...


> I'm very sorry, but it DOES NOT Work, also with setting border-collapse to
> collapse!
>
>

> "Rowland Shaw" <spamf...@anotherpointless.org> schrieb...

0 new messages