On 6/3/05, Magenta Placenta <[EMAIL PROTECTED]> wrote:
> THANKS!
>
> If I use global 0 margins, won't that blow out my centering of the shell div
> since I'm centering it with
>
> margin-left:auto;
> margin-right:auto;
Yes it will, so you'll have to re-declare any margins or padding on
any element that would normally have them by default, such as headings
and paragraphs. Likewise, any other style rule without a margin or
padding declared will default to zero. The "*" selector is generic, so
any other selector will always be more specific, thus trumping the
universal zero. For example:
* { margin: 0; padding: 0; } /* Universal Zero */
p { margin: 1em 10px; } /* 1em on top and bottom, 10px on left and right */
h1 { margin-bottom: 1.5em; } /* 1.5em on bottom, all other sides
default to zero */
#container { margin: 12px auto 0 auto; } /* 12px on top, auto on the
right, zero on bottom, and auto on the left (centered) */
--
Craig, www.focalcurve.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/