Sites won't center on first load in IE

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Locker101
Forum Members
Forum Members
Posts: 55
Joined: Tue Aug 21, 2007 5:30 am

Sites won't center on first load in IE

Post 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.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

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

Post 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.  ???
Locker101
Forum Members
Forum Members
Posts: 55
Joined: Tue Aug 21, 2007 5:30 am

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

Post by Locker101 »

Exactly!!
I have no idea why :/
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

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

Post 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
Locker101
Forum Members
Forum Members
Posts: 55
Joined: Tue Aug 21, 2007 5:30 am

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

Post 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.
Post Reply

Return to “Layout and Design (CSS & HTML)”