Quote Originally Posted by dtommy79 View Post
Hi,

I'm working on a new site and I want to center align the whole page.

I use margin:0 auto; in my css file and it works with firefox and chrome, but in IE9 the whole page is aligned to the left.

Thanks for any help.
Do you have comments above the doctype? If you do, pages break completely in IE.

If you don't have a doctype, you need one. use xhtml 1.0 strict or html5 doctype.

More on doctype over here:
http://www.alistapart.com/articles/doctype/
rahulparekh Reviewed by rahulparekh on . How do i align my webpage to the center? Hi, I'm working on a new site and I want to center align the whole page. I use margin:0 auto; in my css file and it works with firefox and chrome, but in IE9 the whole page is aligned to the left. Thanks for any help. Rating: 5