Any CSS within the hack should have no effect on other browsers at all, as the attempt is to segregate the code.

Last update at 20 · 12 ·

‧‧‧ One of 34

In IE9 and lower, you could use conditional comments to load an IE-specific stylesheet for any version (or combination of versions) that you wanted to specifically target.

Beginning in version 10, conditional comments are no longer supported in IE. But for the few remaining cases when IE 10 and 11-specific CSS is required, there are still a few ways to target those browsers specifically:

/* Internet Explorer 10-11 */

_:-ms-input-placeholder, :root .selector { property:value; }

Media query for IE 10+

/* Internet Explorer 10-11 */

@media screen and (-ms-high-contrast:active),
(-ms-high-contrast:none) {
.selector { property:value; }


Designing often necessitates considering the aesthetic, functional, economic and sociopolitical dimensions of both the design object and design process. It may involve considerable research, thought, modeling, interactive adjustment, and re-design.
Home DesignInternet explorer hacks