W3C home > Mailing lists > Public > www-style@w3.org > September 2008

RE: [CSS21] Collapsing Margins

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Wed, 10 Sep 2008 10:22:56 -0700
To: 'Boris Zbarsky' <bzbarsky@MIT.EDU>
CC: Arron Eicholz <Arron.Eicholz@microsoft.com>, www-style <www-style@w3.org>
Message-ID: <7C2F64B551D8664AAD94A28DAC37D020632BA4BAED@NA-EXMSG-C103.redmond.corp.microsoft.com>

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

Consider this:

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?

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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:30 UTC