Page 1 of 1

Sites won't center on first load in IE

Posted: Fri Dec 10, 2010 12:53 am
by Locker101
Hi all

I'm having an issue with some sites I've made with CMSMS.

Sites are done, up and working. But there's a weird issue. When the site first loads in Firefox, it's fine. When the site first loads in IE, it's not centered. Simply refreshing or clicking a link in IE fixes this but I have no idea what that means or now to fix it!!

Two examples;

http://northgatept.com.au/
http://brideswithbling.com.au/

Is there something I can put into my code to stop this happening? Irks me! :)

Cheers,

D.

Re: Sites won't center on first load in IE

Posted: Fri Dec 10, 2010 1:03 am
by Wishbone
That is very strange. In IE6, if I go to the site for the first time, it is left-justified. If I refresh, it goes to the center. If I navigate away, go to the site again, it is still centered. If I close the IE6 window and bring it up again, it is back on the left. I've never seen this before.  ???

Re: Sites won't center on first load in IE

Posted: Fri Dec 10, 2010 1:05 am
by Locker101
Exactly!!
I have no idea why :/

Re: Sites won't center on first load in IE

Posted: Fri Dec 10, 2010 2:21 am
by Dr.CSS
Have you ever thought maybe it has to do with JS cookie crap above the DOCTYPE, big big no no...

http://validator.w3.org/check?verbose=1 ... .com.au%2F

Re: Sites won't center on first load in IE

Posted: Fri Dec 10, 2010 3:03 am
by Locker101
You're probably right :)

All I did was move this

{Statistics}
{process_pagedata}

To be under the DOCTYPE etc and it's working.