Blog

Conditional CSS: Targeting IE new versions

Conditional CSS: Targeting IE new versions

Targeting IE new versions such us IE10 & IE11 and Edge browsers with CSS is possible, but not the ol’ fashioned way because Microsoft deprecated the conditional commenting (if IE) we used in older versions.

So where’s the black magic? Here:

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

Thanks Doyel for sharing!

PS: Heads up! SCSS/LESS/CSS compatible.

 

 

Leave a Comment