On Fri, Mar 6, 2009 at 3:22 PM, Vladislav Vladimirov <vladk...@gmail.com> wrote: > > > Top margin not set properly. > > Check the code at > > http://pastie.org/409144 > > Do you pay per word for this email? :) From that scarce information > you gave I *suppose* you have a margin collapse issue. I suppose you > are wondering why the "outer-container" does not stick to the body > top, even though the body has margins top and bottom set to 0. This is > due to the margin-top of the P element being passed on to the adjacent > "inner-container", which in turn passes it on to the adjacent > "outer-container", which in turn passes it on to the adjacent BODY > element. So, you are having a margin-top for the body equal to the > margin-top of the P element. In order to cope with this you have to > break the 'adjacent margins chain'. I suggest setting the margin of P > to 0, and using padding instead (like P {padding: .5em 0;}) > > Regards, > Vladislav Vladimirov > http://ovalpixels.com/ > What is success is inevitable?
Vladislav Vladimirov, apologies and thanks for your sharp response. it really helps me. > ______________________________________________________________________ > 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/ ______________________________________________________________________ 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/