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?
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?
you can use like this. it's better than
div.foo { color: inherit;} .ie7 div.foo { color: #ff8000; }
Take a look at these:
(Source: David Bloom’s CSS hack for IE8 Standards Mode)