PDA

View Full Version : Website not centering in IE


srt9687
03-24-2010, 06:35 PM
Ok last question I promise.
My website is not centering itself in the browser window in IE. It works in Chrome though. Thanks!

Corrosive
03-24-2010, 06:38 PM
Ok last question I promise.


We'll believe you ;)

Why is your wrapper div 1000px wide when your site is clearly only about 750 - 800px wide? Make the wrapper the same width as the site.

srt9687
03-24-2010, 06:48 PM
My wrapper is 799px...I'm still stuck, so yes, the site is about 800px wide but the wrapper isn't 1000px. Any thoughts? Don't tell me this will be the toughest problem!!! I thought it'd be a breeze like the others.

gentleone
03-24-2010, 06:58 PM
Add this in your CSS:

body {
text-align: center;
}


And add this to the CSS wrapper rule

text-align: left;


As far as I know IE needs this too to center a page.

srt9687
03-24-2010, 07:26 PM
If I knew you I'd bake you cookies, that worked! Thank you soo much!

gentleone
03-24-2010, 07:33 PM
If I knew you I'd bake you cookies, that worked! Thank you soo much!

No worries... you can still baked them and send them to Rhodes. That would be delighted!

Corrosive
03-24-2010, 07:50 PM
That's curious. Never needed to align center for IE 6 and upwards before.

gentleone
03-24-2010, 08:03 PM
That's curious. Never needed to align center for IE 6 and upwards before.
I guess because you work with floated divs and hardly with a relative positioned wrapper div which have inside a lot of absolute positioned divs like he has

Corrosive
03-24-2010, 08:05 PM
Aye, true.

srt9687
03-24-2010, 08:10 PM
I have no idea what you guys are talking about....thank goodness you exist because clearly I get lost easily. : )