On Jun 7, 2008, at 2:58 AM, Peggy Coats wrote: > Can't figure out what I'm missing here: > http://www.ambientglow.com/garage/pmsca/web/sample-index.html > > css: http://www.ambientglow.com/garage/pmsca/web/_css/pmsca-home.css > > I want the three horizontal divs -- header, content wrapper, and > footer -- to be flush with each other, yet I've got white space in the > content wrapper between header and footer, and, within content > wrapper, space between the two divs -- homepic and homename. > > I've got padding and margins everywhere set to "0" -- what have I > forgotten?
Margin collapse-trough [1]. For example, the gap bellow #homepic is caused by the margin-bottom on the child <p>. You could add a 1px border or padding to the parent element to prevent the margin of the <p> to collapse through the div. [1] <http://www.w3.org/TR/CSS21/box.html#collapsing-margins> Philippe --- Philippe Wittenbergh http://l-c-n.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/
