IE conditional stylesheet not working
-
I just want to call a CSS stylesheet for IE6 using conditional statements. I’ve read 100 posts on this subject, but it is just not working for me!
I’ve seen two methods described in these forums, but neither one is calling the IE6 stylesheet.
(I’ve been placing this code in my header.php file):
OPTION ONE:
—————<style type=”text/css” media=”screen”>
@import url( <?php bloginfo(‘stylesheet_url’); ?> );
</style><!–[if IE 6]>
<style type=”text/css”>
@import “https://www.calyxdesign.com/wordpress/wp-content/themes/modern/ie6.css”;
</style>
<![endif]–>OPTION TWO:
—————<link href=”https://www.calyxdesign.com/wordpress/wp-content/themes/modern/style.css” rel=”stylesheet” type=”text/css” />
<!–[if IE 6]>
<link href=”https://www.calyxdesign.com/wordpress/wp-content/themes/modern/ie6.css” rel=”stylesheet” type=”text/css” />
<![endif]–>OPTION THREE
—————<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
<!–[if IE 6]>
<link href=”<?php echo bloginfo(‘template_directory’); ?>/ie6.css” rel=”stylesheet” type=”text/css” />
<![endif]–>
- The topic ‘IE conditional stylesheet not working’ is closed to new replies.