AntoLeNice Posted April 8, 2011 Share Posted April 8, 2011 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 Quote Link to comment Share on other sites More sharing options...
dcro2 Posted April 8, 2011 Share Posted April 8, 2011 Try making it valid xhtml code first. http://validator.w3.org/check?uri=http%3A%2F%2Fgiteaux4vents.ca%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&group=0 For example, you put a lot of html inside <ul>, but not inside a <li>. Quote Link to comment Share on other sites More sharing options...
AntoLeNice Posted April 8, 2011 Author Share Posted April 8, 2011 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 Quote Link to comment Share on other sites More sharing options...
betterphp Posted April 8, 2011 Share Posted April 8, 2011 Display thing shave nothing to do with php at all. The best thing you can do is validate the page. Quote Link to comment Share on other sites More sharing options...
dcro2 Posted April 8, 2011 Share Posted April 8, 2011 It may have to do with the encoding that php sends the html in, etc. But you really should make it valid first. Did you just basically paste the html code into a php file or is something in there now generated by php? Quote Link to comment Share on other sites More sharing options...
guyfromfl Posted April 8, 2011 Share Posted April 8, 2011 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. Quote Link to comment Share on other sites More sharing options...
AntoLeNice Posted April 8, 2011 Author Share Posted April 8, 2011 Heyhey !! I modified the list and now it works !! Still have a little problem with the image slider in compatibility mode, but still, the biggest problem is solved ! Thanks guys =) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.