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

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

From: Bert Bos <bert@w3.org>
Date: Fri, 14 Feb 2003 20:40:46 +0100
Message-ID: <15949.17982.437356.448585@lanalana.inria.fr>
To: "Christian Roth" <roth@visualclick.de>
Cc: "www-style Mailing List" <www-style@w3.org>

Christian Roth writes:

> in the properties index for CSS 2.1 [1], there are no restrictions for
> the 'margin-...' properties in the "Applies to" column. Yet, in "17.5
> Visual layout of table contents" [2], it says that "Cells have padding as
> well. Internal table elements do not have margins."
> Shouldn't there be a note for the 'margin-...' properties in the
> properties index that they do not apply to "internal table elements"? Is
> being an "internal table element" synonymous with having one of the
> 'display' property values 'table-row-group', 'table-header-group',
> 'table-footer-group', 'table-row', 'table-column-group', 'table-column',
> 'table-cell' set?
> If yes, am I correct in assuming that in any table that follows the HTML
> table model, <tr> and <td> elements can never have margins set?

That's correct, margin does indeed not apply to any table elements,
apart from the table itself and the caption.

It might indeed be better to have a note to that effect in the
"applies to" column.

> References:
> [1] <http://www.w3.org/TR/2002/WD-CSS21-20020802/propidx.html>
> [2] <http://www.w3.org/TR/2002/WD-CSS21-20020802/tables.html#q7>

  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos/                              W3C/INRIA
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Friday, 14 February 2003 14:40:56 GMT

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