On Wed, 19 Nov 2003 06:50:00 -0700, Jon Jensen [EMAIL-REMOVED]> wrote: > It has to do with collapsing margins. > > http://www.w3.org/TR/CSS2/box.html#collapsing-margins > > http://trats.ozforces.com.au/css/collapsingmargins.html > > Jon Well yes, but that doesn't explain why a background color applied to a div only fills the div if border, width or positive padding values are set. in the example given only the <p> has a background color, not the margin or padding of the p, but it's the div that has been styled with a background color. <div> <p>blah</p> </div> <div> <p>blah</p> </div> with the following style div { padding: 0px; margin: 0px; background: #999999; } ? Tony -- listening to: Terry Oldfield - Celtic Blessing http://www.xebit.net ______________________________________________________________________ css-discuss [EMAIL-REMOVED]] http://www.css-discuss.org/mailman/listinfo/css-d Supported by evolt.org -- http://www.evolt.org/help_support_evolt/