Jump to content

Working HTML code gets f**ked up in PHP with IE in Compatibility Mode


AntoLeNice

Recommended Posts

Hi there !

 

I'm working on a website, and when I open it in HTML on IE 8, it works. In compatibility mode, it works.

 

BUT, when the file in integrated in PHP, IE in Compatibility mode will destroy the hell out of it.

 

Here is the link if you want to see for yourself: http://giteaux4vents.ca/index.php

 

Does anybody know why that would do that ??

 

Thanks, Anto

Hi dcro2,

 

thanks for answering so fast.

 

It is true that these ul/li errors could eventually create an error, but the fact it, if the page is in .html without any PHP code, it always works even in compatibility mode. When integrated it PHP, that's when the problems shows up in compatibility mode on IE. I will try to fix the list errors, but could that be anything else ??

 

Thanks, Anto

Make sure you are using the correct DOCTYPE declaration... IE is the most picky about this and how it renders your code.

 

I just spent a week redoing alot of code and found that fixing the DOCTYPE was the main culprit the whole time. 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.