conditional IE stylesheet
-
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?
- The topic ‘conditional IE stylesheet’ is closed to new replies.