Le 9 août 2012 à 03:41, David Hucklesby a écrit :

> Well, this article explains this in terms of a top margin. Bottom margins
> behave the same way--but not in all browsers, it seems.
> 
> I admit that this continues to confuse me, too, as the behavior is
> inconsistent among browsers, as you have found out.
> 
> <http://reference.sitepoint.com/css/collapsingmargins>

This is a very special case of margin-collapsing in that the affected div has a 
min-height specified. As I noted in my first reply, this calls for a more 
complex behaviour. And it is in this very special case that browsers don't 
really agree on what to do with the bottom margin of that <p>.

Here is a minimal testcase illustrating what is going on:
http://dev.l-c-n.com/_temp/min-height_margin-b.html

Philippe
--
Philippe Wittenbergh
http://l-c-n.com




______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to