W3C home > Mailing lists > Public > www-style@w3.org > April 2009

Re: Control over collapsing margins

From: Patrick Garies <pgaries@fastmail.us>
Date: Wed, 29 Apr 2009 08:33:22 -0500
Message-ID: <49F85722.7010200@fastmail.us>
To: Aryeh Gregor <Simetrical+w3c@gmail.com>
CC: www-style@w3.org
Aryeh Gregor wrote:
>  On Tue, Apr 28, 2009 at 10:20 AM, Niels Matthijs
>  <niels.matthijs@internetarchitects.be> wrote:
> > I know the ways to "fix" the collapsing margin issue, but I don't
> > see why we should keep on fixing it while there is an obvious need
> > for standardized control. Especially since there is not one
> > perfect, harmless way to fix this.
>  Is there any harm from adding a near-zero amount of padding?  Or does
>  that not cover all use-cases?  (Granted that it's not elegant.)

As far as precision control goes, that doesn't solve the problem. If you 
kill the margins that way, you'll always have, at least, one undesired 
pixel of padding; in Mozilla Firefox, Opera, Safari, and Windows 
Internet Explorer, setting the margins to any value that rounds to zero 
pixels results in margins collapsing anyway.

— Patrick Garies
Received on Wednesday, 29 April 2009 13:34:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:36 UTC