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.

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:26 UTC