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:50:14 +0100
Message-ID: <EAD6F36F8B8A124FB32D722A828211FD0881AFA2@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 16:39
To: Niels Matthijs
Cc: www-style@w3.org
Subject: Re: Control over collapsing margins

> Of course it is a hack, but at least it works most of time.

I think, with column modules, SVG graphics, css animation and
multibg/rounded-corner boxes in the making that we shouldn't just be
content with hacking our way across margins anymore. It's one of the
most basic css properties and important for a solid page structure. I'd
hope to use it when css3 support is there without needed to hack my way
around a simple thing like this.

> On the other side, I don't see the necessity for "margin-top-collapse"
> / "margin-bottom-collapse" or even just "margin-collapse" (since we
> need margin-left-collapse and margin-right-collapse for Japanese and
> Mongolian)

It is useful from time to time. Meyer gave a good example of p's nested
in a li element (where the top of the first paragraph should line up
with the top of the li element if it isn't visually separated.

Not quite sure if a BFC is such a good idea, since this seems to involve
more than simply controlling the collapsing margin, and could have
unwanted effects?

Niels Matthijs
Received on Tuesday, 28 April 2009 14:53:23 UTC

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