Jump to content

Fixing site in INTERNET EXPLORER, please!


justinchrono

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/225964-fixing-site-in-internet-explorer-please/
Share on other sites

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.

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.