Sunday, 29 September 2013

IE 7 stylesheet only works when !important is applied to its elements

IE 7 stylesheet only works when !important is applied to its elements

My IE 9 stylesheet works fine, but with my IE7 and IE8 stylesheets, I am
forced to type !important to apply my new properties to their elements.
Here is the code for all three:
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="<?php echo
get_template_directory_uri(); ?>/css/ie7.css" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo
get_template_directory_uri(); ?>/css/ie8.css" />
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="<?php echo
get_template_directory_uri(); ?>/css/ie9.css" />
<![endif]-->

No comments:

Post a Comment