Tuesday, February 1, 2011

Target IE6 and IE7 with CSS

Very nice way to target IE6 or IE7 specifically within your CSS doc.

#myelement
{ color: #999; /* shows in all browsers */ 
*color: #999; /* notice the * before the property - shows in IE7 and below */ 
_color: #999; /* notice the _ before the property - shows in IE6 and below */ 
}

No comments: