esedic
6/8/2018 - 6:03 PM

IE 10+ & Edge CSS targeting

IE 10+ & Edge CSS targeting

/* target Edge */
@supports (position:-ms-page) {
   body {
     background: blue !important;
   }
}
/* target IE 10 + IE 11 */
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {  
   body {
     background: blue !important;
   }
}