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

RE: Control over collapsing margins

From: Niels Matthijs <niels.matthijs@internetarchitects.be>
Date: Tue, 28 Apr 2009 15:20:33 +0100
Message-ID: <EAD6F36F8B8A124FB32D722A828211FD0881AF4B@win-s-manc3.shared.ifeltd.com>
To: <www-style@w3.org>
-----Original Message-----
From: Giovanni Campagna [mailto:scampa.giovanni@gmail.com] 
Sent: 28 April 2009 15:36
To: Niels Matthijs
Cc: Anton Prowse; www-style@w3.org
Subject: Re: Control over collapsing margins

> For the moment, you can go with overflow:auto on the .box, to make it
> a BFC and avoid margin-collapsing. You just need to set height always
> to auto (to avoid overflow).

Not really, because by doing that you'll limit yourself. If I want an
element inside to be positioned outside of the box (pos:abs; right:-1em
fe) the overflow will trigger, creating scrollbars.

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.

Greets,
Niels Matthijs
Received on Tuesday, 28 April 2009 14:22:19 GMT

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