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. > I have this snippet of XHTML 1.0 strict code: > > <css and html trimmed> > >
Not sure I understand what you are getting at. Or is it that I am not sure what I am getting at :-) ? The height of .a is is approx 104px with .top and provides a reference (the border) above and below h1 that tells the browser to the paint .a with background-color #ccc. The height of .a is is approx 102px if .top is deleted and tells the browser to only paint h1 with background-color #ccc. If you took it one step further, and moved background-color #ccc to .a , and deleted .b and .top, the height of .a will be approx 102px and the browser will paint .a with background-color #ccc. the -- A thin red line and a salmon-color ampersand forthcoming. http://chelseacreekstudio.com/ ______________________________________________________________________ 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/
