Forum Moderators: not2easy

Message Too Old, No Replies

IE7 Changed Perspective Because of Comment.

All my sites are left aligned all of a suddon...

         

Tom_Cash

8:41 pm on Feb 25, 2009 (gmt 0)

10+ Year Member



Basically, in a nut shell. All my websites have become left-hand aligned, from centre when I added a comment before my doc type.

Does anyone know why this has happened and how to avoid it?

I've seen other websites do this and it doesn't effect their central layouts...

Cheers,
Tom.

rocknbil

9:30 pm on Feb 25, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



when I added a comment before my doc type.

You probably threw it into quirks mode. Add the comment after the doctype, which is supposed to be the first line in your document.

Tom_Cash

9:50 pm on Feb 25, 2009 (gmt 0)

10+ Year Member



That's worked a treat. Thanks! :)