W3C home > Mailing lists > Public > www-style@w3.org > February 2003

Re: [CSS 2.1] 'margin-...' in properties index

From: Christian Roth <roth@visualclick.de>
Date: Sat, 15 Feb 2003 17:19:03 +0100
To: "Joris Huizer" <joris_huizer@yahoo.com>
Cc: "www-style Mailing List" <www-style@w3.org>
Message-Id: <20030215161903.3486@mail.visualclick.de>

Joris wrote:

>This is probably off-topic but... does that mean there
>is no way of expressing the cellspacing/cellpadding
>attributes of <table> in css ?

I think there is a way:


cellspacing="N" 

  translates to 

{ border-collapse: separate; border-spacing: Npx; } 

on the <table> element, and


cellpadding="N"

  translates to

{ padding: Npx; } 

on the <cell> element. 'padding' is allowed on internal table elements,
it's only 'margin' that is not.

Christian
Received on Saturday, 15 February 2003 11:19:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:19 GMT