Jump to content

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


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. 

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.