justinchrono Posted January 28, 2011 Share Posted January 28, 2011 Hello. I am trying to fix my site to look right in Internet Explorer. I am new to code. Right now, I found this, and put it in my Main Index Template... <?php if (eregi("MSIE",getenv("HTTP_USER_AGENT")) || eregi("Internet Explorer",getenv("HTTP_USER_AGENT"))) { ?><link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/style-ie.css"/> <?php } else { ?> <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/style.css"/> <?php } ?> Then, I created the file style-ie.css and tried messing around with it. Nothing changed. Any help anyone? I also tried this php <!--[if IE]> <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/IE.css" type="text/css" media="screen" /> <![endif]-> Thanks Quote Link to comment https://forums.phpfreaks.com/topic/225964-fixing-site-in-internet-explorer-please/ Share on other sites More sharing options...
Maq Posted January 28, 2011 Share Posted January 28, 2011 1) Please do not double post. If the topic belongs elsewhere then someone will move it. 2) I put tags around your code, use them next time. Quote Link to comment https://forums.phpfreaks.com/topic/225964-fixing-site-in-internet-explorer-please/#findComment-1166565 Share on other sites More sharing options...
justinchrono Posted January 28, 2011 Author Share Posted January 28, 2011 any help? Quote Link to comment https://forums.phpfreaks.com/topic/225964-fixing-site-in-internet-explorer-please/#findComment-1166626 Share on other sites More sharing options...
cssfreakie Posted January 28, 2011 Share Posted January 28, 2011 any help? what is your problem in a more precise manner, this is a pretty general stated 'help me?' I have no idea where to begin nor am i able to know if i can help. isn't this more php related? because that is what i see in your code. Quote Link to comment https://forums.phpfreaks.com/topic/225964-fixing-site-in-internet-explorer-please/#findComment-1166711 Share on other sites More sharing options...
justinchrono Posted February 1, 2011 Author Share Posted February 1, 2011 yes. a moderator moved the thread for some reason. i thought the problem was described well. internet explorer doesn't read the css for my website how fix? Quote Link to comment https://forums.phpfreaks.com/topic/225964-fixing-site-in-internet-explorer-please/#findComment-1168367 Share on other sites More sharing options...
raknjak Posted February 1, 2011 Share Posted February 1, 2011 <!--[if IE]> <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/IE.css" type="text/css" media="screen" /> <![endif]-> Thanks Fix this path and it should work. What url is shown when you view the source? Quote Link to comment https://forums.phpfreaks.com/topic/225964-fixing-site-in-internet-explorer-please/#findComment-1168499 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.