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

Re: Margin properties apply to all elements

From: David Perrell <davidp@earthlink.net>
Date: Thu, 12 Mar 1998 12:49:17 -0800
Message-ID: <006d01bd4df8$53a396e0$2006b3d1@davidp>
To: "Style" <www-style@w3.org>
I wrote:
>Why complicate the spec with alternate properties and exceptions? Why
>not simply expand the definition of margins to encompass absolute
>positioning?


Ah, I see! (said the blind carpenter, as he picked up his hammer and saw
and answered himself). Simplification thwarted by relative positioning,
which leaves margins behind.

OK, other arguments for no exceptions on margins:

(1) A new container is created by absolute positioning, so why shouldn't
margins be valid inside?

(2) Consider an absolutely positioned block the height of the viewport,
with auto-scroll and content deeper than the viewport. Without margins,
the content must either be given padding or enclosed in another element
to avoid having it abut the edge of the viewport and the scrollbar.

I see little use for 'position: relative', but I can see another use for
'left:', 'right:', 'top:', 'bottom:' -- 'position: float' would allow a
floated block to be placed anywhere, not just left or right.

David Perrell
Received on Thursday, 12 March 1998 15:49:09 GMT

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