W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 2006

Re: [CSS] DT and DD margins don't collapse with DL sibling element margins

From: Stanimir Stamenkov <stanio@myrealbox.com>
Date: Tue, 31 Oct 2006 14:44:53 +0200
Message-ID: <45474545.3000705@myrealbox.com>
To: "www-amaya.w3.org" <www-amaya@w3.org>
/Stanimir Stamenkov/:

> The top and bottom margins of DT and DD elements doesn't seems to 
> collapse with the top and bottom margins of element siblings of the DT 
> and DD enclosing DL element - see the attached example.

The example contained error in the stylesheet, the style rule:

     dl.only-child { margin-top: 1em; margin-bottom: 1em }

should read:

     dd.only-child { margin-top: 1em; margin-bottom: 1em }

(mistyped "dl" -> "dd)

Thus the example shows for DD elements only the bottom margin 
doesn't collapse. I'm attaching one more "inter-DL" example.


Received on Tuesday, 31 October 2006 13:11:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:52 UTC