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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:46:58 GMT