Peggy Coats wrote:
> http://www.ambientglow.com/garage/pmsca/web/sample-index.html
> 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?
Paragraphs still have default margins, so it's a "collapsing margins"[1]
case.
Simplest solution is to declare 'padding: 1px 0;' on the various
container-divs. The default vertical margins on paragraphs will then be
kept inside their containers, and the gaps will close up.
Having paragraphs with zero vertical margins will of course also work,
but that's normally not a good solution.
regards
Georg
[1]http://www.w3.org/TR/CSS21/box.html#collapsing-margins
--
http://www.gunlaug.no
______________________________________________________________________
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/