Forum Moderators: not2easy

Message Too Old, No Replies

If you can answer this I'll be very impressed

very picky non-IE page centering issue

         

icpooreman

3:53 pm on Aug 18, 2005 (gmt 0)

10+ Year Member



ok I've got a website and am centering all of my pages. The way I do that is by putting a wrapper around all of the content then I do this in my CSS.

body { text-align:center; min-width:751px; }
#wrapper { margin: 0 auto; width:770px; text-align: left;}

This works fine to center the page however someone recently noticed that in non-IE browsers (Firefox, Opera probably more too) when the content is long enough and a scrollbar appears, the page content will align itself slightly to the left due to the fact that firefox will tell itself that the window is smaller then center itself accordingly. My question is there anyway I can keep this from happening.

Or maybe there are other ways to center the page that won't do this.

SuzyUK

4:27 pm on Aug 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might not like the answer but you will be impressed [webmasterworld.com] ;0

Suzy

icpooreman

4:59 pm on Aug 18, 2005 (gmt 0)

10+ Year Member



Thanks alot that was exactly what I was looking for.