W3C home > Mailing lists > Public > www-style@w3.org > October 2003

Re: Collapsing vertical margin through parent. why?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 16 Oct 2003 13:00:30 -0500
Message-ID: <3F8EDCBE.4040807@mit.edu>
To: staffan.mahlen@comhem.se
Cc: "www-style@w3.org" <www-style@w3.org>

staffan.mahlen@comhem.se wrote:
> I agree that this theory works with trivial markup and for simple 
> cases.

Most markup is trivial.  The idea should be to make the easy things 
(simple document layout) easy, and the hard things (complex layout) 
possible.  Currently, that is the case.  Making hard things easier at 
the expence of requiring all simple document to include gobs of CSS to 
handle margins seems counterproductive...

> I also think the feature may be to simplistic as it works. If your 
> example had a background color on section, the margin of the children 
> para should probably not have been collapsed.

Why not?  The text will have the proper background, as desired.  If the 
intent is that the section should have a strip of background around its 
contents, padding on the section should be used.  If there is no such 
intent, then why should the margin not collapse?

-Boris
Received on Thursday, 16 October 2003 14:13:26 GMT

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