How to target ALL IE’s seperately
Today’s tidbit for you. You can target all the IE’s, including 8 to have different values, in case you forgot to use a css reset.
.myText { color: #00FF33; }
.myText { color /*\**/: #cc0000\9 }
.myText { color: #0000ff !ie; }
.myText { _color: #000000; }
1)Targets all – makes style color green
2)Hits IE7 & 8 (but not 6, IE6 will still get green color) – makes it dark red
3)Hits IE7 and 6 (but with #2 in place, doesn’t hit 8 ) makes it blue
4)Hits IE6 – makes it black
Don’t ask what the /*\**/: means, no idea, but it works. You also need the \9 after the value.
