> I can't both have a 20px margin for the 100% wide body, and an auto
> margin for
> the centered div, both on the same time on my body. If I move the 20px
> margin
> to the 100% wide div, then it will be pushed out 20px of the screen and
> giving me
> a horrible horizontal scrollbar (yuck).
>

Give the outermost container negative margins on both sides. That will pull
it in on both sides, so that you can keep from going over the 100% width.

so:

div {
margin-left: -25px;
margin-right: -25px;
}

--
- C Montoya
rdpdesign.com <http://rdpdesign.com> ...
liquid.rdpdesign.com<http://liquid.rdpdesign.com>...
montoya.rdpdesign.com <http://montoya.rdpdesign.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/

Reply via email to