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
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
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/

Reply via email to