Re: [css-d] 100% width with margins

2005-10-07 Thread Gunlaug Sørtun
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/o

Re: [css-d] 100% width with margins

2005-10-07 Thread Christian Montoya
> 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). > Giv

Re: [css-d] 100% width with margins

2005-10-07 Thread David Laakso
Andreas Håkansson wrote: My previous (and first) post to this list was a great success so I’m keeping my fingers crossed for a repeat :-) Me too. Any ideas on how to pull this one off? It’s late and I’m a bit tired so I wont paste any css/html tonight (need to simply it as well as tidy it

[css-d] 100% width with margins

2005-10-07 Thread Andreas Håkansson
Hi! My previous (and first) post to this list was a great success so I’m keeping my fingers crossed for a repeat :-) I want to have a 100% wide div on my page which also has a 20 pixel padding as well as a 2px border. Now if I add the margin to the body and the width and border to my div it wor