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

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
-- 
  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 UTC