W3C home > Mailing lists > Public > www-style@w3.org > March 1998

Margin properties apply to all elements

From: David Perrell <davidp@earthlink.net>
Date: Thu, 12 Mar 1998 09:24:03 -0800
Message-ID: <002d01bd4ddc$1b1448e0$2006b3d1@davidp>
To: "Style" <www-style@w3.org>
In CSS1 and in the individual CSS2 property definitions, margins apply
to all elements without exception.

But sections 9.1.1, 9.3.3 and 9.4.3 in the CSS2 draft state otherwise.
In 9.3.3 and 9.4.3, it's stated that left, right, top, and bottom
replace margin-left, margin-right, margin-top, and margin-bottom for
absolutely positioned elements.

Why complicate the spec with alternate properties and exceptions? Why
not simply expand the definition of margins to encompass absolute
positioning?

As exceptions are added to properties, CSS starts to resemble the
plethora of inconsistent elements and attributes of proprietary HTML,
and the specification becomes increasingly dense.

David Perrell
Received on Thursday, 12 March 1998 12:27:08 GMT

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