Jump to content

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.

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.