View Full Version : Whole not centering in IE

12-14-2010, 05:36 PM
Here's the page:

And the CSS file:

I'm making a test layout for a photographer, hence the placeholder images and text. In IE, the whole page is aligned to the right and the JavaScript accordion sections don't work very well (The blue bars and the e-mail button). In Chrome 8, Firefox 3.6.13, and Safari 5.0.3 it works perfectly and is center aligned.

The really frustrating part about all of this is that it used to work in IE just fine until I added something along the way. I've removed each section individually and retested but it hasn't fixed it. Anyone have any advice?

Thanks in advance.

12-14-2010, 05:39 PM
<!-- Site by Thomas Cushard with various javascript stuff by Ryan Stemkoski:ryan@gozipline.com and Michael J. I. Jackson -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Anything above DOCTYPE may turn IE to quirks mode. Remove that and check again.

12-14-2010, 06:15 PM
I can't believe that was it. Thank you for your prompt and correct solution.