PDA

View Full Version : IE css selectors - what about IE8


chriskq
03-18-2009, 11:01 PM
As you may or may not know to target elements only in IE browsers i'll use

ie6:
* html #nav li ul {
left: -39px!important;
border: 1px solid red;
}

ie7:
*+html #nav li ul {
left: -39px!important;
}

does anyone know how to target IE8?

domedia
03-19-2009, 04:38 AM
Conditional comments. Those hacks might backslash later.
<!--[if IE 8]>
Only IE8 reads this.
<![endif]-->