[thelist] Help!

Matt Warden mwarden at gmail.com
Mon Jun 27 11:57:15 CDT 2005


On 6/27/05, Jonathan <j at firebright.com> wrote:
> <snip>
> 
> Chris, it's fine on IE, it's FF that's having the issue (sorry, should
> have said something).
> 
> Ken, the #navwrapper CSS already had it:
> 
> /* provides the padding */
> #navwrapper {
>    padding: 0;
>    margin: 0;
>    padding-left: 90px;
> }
> 
> Plus shouldn't it inherit from the body object?
> 
> body {
>    margin: 0;
>    padding: 0;
> }

AFAIK, no. The only influence body will have on its contents (as far
as whitespace goes) is that padding will, in a way, look similar to
margins on its contents. i.e.,

<body>
<div>foo</div>
</body>

body {
    margin: 0;
    padding: 5px;
}

div {
    margin: 0;
    padding: 0;
}

should look the same as:

body {
    margin: 0;
    padding: 0;
}

div {
    margin: 5px;
    padding: 0;
}




-- 
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.


More information about the thelist mailing list