Andreas Håkansson wrote:
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).

Not sure if I understand this one right. I usually solve problems with
full-width block-elements that have margins and/or paddings by letting
them default to 'width: auto'.
That is: either not setting a width at all, or setting 'width: auto'.
Not many browsers that can't calculate how much width they need to make
this add up to 100%. Such elements can be nested until there's no width
left.

That 'margin: auto' makes me wonder though. You can't use that to center
a container that's already full width. Are you sure you've presented
this case in the right order?
Sure would like to see a page, so I can separate human bugs from
shortcomings in CSS :-)

        Georg
--
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/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to