I'm working on http://sleep.fm/test/sleepfm - in chrome & firefox it is centered properly. In IE after adding < ? php ?> tags at the top it floats to the left and is not centered.

Here is same version without php tag at the top http://sleep.fm/test/sleepfm2 . I can not figure out why IE when php tag is added at very top of document it moves all content left?

Appreciate suggesitons!

thanks, chaser

2 answers


anything before the doctype puts IE into quirks mode - you need to run this page through the PHP parser to remove the tags - e.g at the moment it's being served up to browsers with the php tags - and that makes IE go into quirks mode.

make the page a .php file?

Answered over 7 years ago by Tony Crockford

oh duh - thanks

Answered over 7 years ago by chaser7016
  • no points for me being helpful then? :) Tony Crockford over 7 years ago