2009/2/4 Cristian Palmas <[email protected]> > 2009/2/4 Gunlaug Sørtun <[email protected]> > > Cristian Palmas wrote: >> >>> Hi all, >>> >>> I have noticed a CSS behaviour that seems strange to me, so I thought >>> of asking to someone for some explanation. >>> >> >> [...] >>> >> >> May anyone tell me why? >>> >> >> See "collapsing margins"... >> <http://www.w3.org/TR/CSS21/box.html#collapsing-margins> >> ...a rather complex part of CSS standards. >> >> Borders on .top will make .top expand to contain h1's vertical margins, >> while .top without borders will only contain the h1 itself and not its >> vertical margins. >> >> regards >> Georg >> -- >> http://www.gunlaug.no >> > > > Thanks Georg, > > I've already heard about it but I've never seen it in action. > Bye. > > > -- > ~ Cristian Palmas ~ > http://www.cristianpalmas.it >
-- ~ Cristian Palmas ~ http://www.cristianpalmas.it ______________________________________________________________________ css-discuss [[email protected]] 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/
