W3C home > Mailing lists > Public > www-style@w3.org > February 2006

[css21] Collapsing margins

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sat, 18 Feb 2006 16:10:20 -0800
Message-ID: <00bd01c634e8$df23a4f0$3201a8c0@Terra>
To: <www-style@w3.org>

Can anybody comment following [1]:

<quote>
If the top and bottom margins of a box are adjoining, 
then it is possible for margins to collapse through it. 
In this case, the position of the element depends on its 
relationship with the other elements whose margins 
are being collapsed. 
</quote>

What exactly means: "top and bottom margins of a 
box are adjoining"? 
Top and bottom margins of a box are 
adjacent to each other?

If yes then there is only one case when it is possible - 
when block has computed value of height equals to zero.

And also "then it is possible" implies some indetermination.
Is this the intention?

OT: Is it possible in principle to define margin collapsing 
in terms of :first-child or something like this?

Andrew Fedoniouk.
http://terrainformatica.com


[1]  http://www.w3.org/TR/CSS21/box.html#collapsing-margins
Received on Sunday, 19 February 2006 00:10:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:43 GMT