How to Target Internet Explorer 10 and 11 in CSS

Logic taken from here: https://philipnewcomer.net/2014/04/target-internet-explorer-10-11-css/

-ms-high-contrast supports two values: none and active. So to target IE10+ regardless of the property’s setting, use this media query:

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
/* IE10+ CSS styles go here */
}

Revisions

Tags: , ,

No comments yet.

Leave a Reply