• Resolved edjusted

    (@edjusted)


    I’m trying to figure out a css problem with IE and the first thing I’m doing is creating a seperate IE stylesheet. I’ve followed all the instructions found in the forums but can’t seem to get IE to pick up the new stylesheet.

    Here’s what I’ve added to my header.php *below* the call to the regular style.css and *above* “<?php wp_head(); ?>

    Here’s my code:

    <!–[if IE]>
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/style-ie.css” type=”text/css” />
    <![endif]–>

    I know that IE is picking up the if-then, because I added a random text string in there and IE showed it. The way I’m testing whether or not IE is getting the style-ie.css sheet is by changing the color of the menu bar from orange (non-IE) to white (IE). I’ve also tried hardcoding the path to the other css sheet and that didn’t help.

    I’m at my wits end. What am I doing wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ben L.

    (@nightgunner5)

    Did you try !important after the color declaration? For example, background-color: #fff !important;

    echoca

    (@echoca)

    I’m sure you have tried this but…empty the IE cache and refresh and see if you can see the changes then. I know this gets me sometimes. Again just checking, not trying to insult.

    Thread Starter edjusted

    (@edjusted)

    Nightgunner5: I just tried it and it didn’t work. As far as I can tell, the problem is IE isn’t even loading the ie-specific css file.

    echoca: I have emptied the cache and it didn’t help. This gets me sometimes too, so I’ve actually done it several times.

    Thanks for the responses so far! If it helps, the web site in question is https://www.ramenramenramen.net

    The only difference now (for testing) is that non-IE browsers will see a horizontal orange bar behind the top menu choices (home, about, contact, etc) while IE browsers should show a white bar instead of orange.

    Thread Starter edjusted

    (@edjusted)

    Nevermind! I had an unclosed comment in my IE css. Duh. Thanks for the help so far!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘conditional IE stylesheet’ is closed to new replies.