jbrashear72
asked on
My menues and some CSS is not working in IE 9
My site: www.burningtree.com is having IE 9 issues.
The menues top middle and footer are all disapearing.
If I select compatability mode in the browser they all show up and the formatting is corrected.
I inhearted this site and noticed that there was code in the header.php file (wordpress) that checked the browser type and I tried to modify it for IE 9:
<?php if (strpos($_SERVER['HTTP_USE R_AGENT'], "MSIE 8")) {
header("X-UA-Compatible: IE=7");} ?>
<?php if (strpos($_SERVER['HTTP_USE R_AGENT'], "MSIE 9")) {
header("X-UA-Compatible: IE=7");} ?>
But this does not seem to matter.
How can I force this to work in compatiblity mode?
The menues top middle and footer are all disapearing.
If I select compatability mode in the browser they all show up and the formatting is corrected.
I inhearted this site and noticed that there was code in the header.php file (wordpress) that checked the browser type and I tried to modify it for IE 9:
<?php if (strpos($_SERVER['HTTP_USE
header("X-UA-Compatible: IE=7");} ?>
<?php if (strpos($_SERVER['HTTP_USE
header("X-UA-Compatible: IE=7");} ?>
But this does not seem to matter.
How can I force this to work in compatiblity mode?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I don't have IE9 installed, only 8, but let me install IE9 and i'll get back to you
Well, I use XP at work and can't install it here, @ home I use Win 7 and will install it. I'll keep you posted, but it will be long (7 hrs) before i go back home.
ASKER
OK cool thanks. Yea I have it added and just tried it on my notebook. I just upgraded to IE 9 and FF 4 on the WIN 7 Ultimate 64bit notebook. The index page is still having the same troubles. now I added a test var in the url:
http://www.burningtree.com/?test=1234
and the compatibility icon did not show up and the page rendered ok. But it doesn't always work. It seems to be random.
http://www.burningtree.com/?test=1234
and the compatibility icon did not show up and the page rendered ok. But it doesn't always work. It seems to be random.
ASKER