RE: [CSS21] Collapsing Margins

What I mean to say there is that the meaning of margin is to define the distance between elements.

Consider this:
        <C>
                <A/>
        </C>
        <B/>

If element A has bottom margin of 80px, it would normally mean that it will be at least that far from element B that follows. That may change A has a parent C with certain properties. Specified 'height' on C clearly can reduce this distance, as can 'max-height'. However having 'min-height' reduce overall size of layout seems odd.

-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of Boris Zbarsky
Sent: Wednesday, September 10, 2008 10:05 AM
To: Alex Mogilevsky
Cc: Arron Eicholz; www-style
Subject: Re: [CSS21] Collapsing Margins


Alex Mogilevsky wrote:
> For the concept of min-height, I don't think there is a precedent so far where setting min-height would make something smaller than it would be without it (which is what this test suggests)...

Really?  How do you see that, exactly?  I don't see a way that a
min-height setting using either the IE approach or the one I suggested
can result in a smaller element height than otherwise.  What am I missing?

Unless the "something" you refer to is no the element min-height is set on?

-Boris

Received on Wednesday, 10 September 2008 17:23:42 UTC