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.

 

 

Don’t Stop Here

More To Explore

Mi Historia en GM2

Zarco inició en mayo de 2015 a través de una pasantía sin saber nada de lo que es el software development y ahora es uno

Read More »

CuTt8: git branch by date

Copper’s Tips & Tricks #8: git branch by date Here at the office we use feature branches. Feature branches with ticket name/numbers. Now, I am

Read More »

CuTt7: theme-symlink

Copper’s Tips & Tricks #7: theme-symlink WordPress developers, I know some of you who use Sublime or similar tools with file explorer sidebars, have problems.

Read More »