Skip to content

Скептична яма за идеи

и други бележки към мене си

  • начало
  • tech
  • блог
  • здраве
  • приключения
  • ядене
  • бизнес
  • деца
  • Кой?

[CSS] Internet Explorer specific styles

Posted on 2020.04.29 by vloo

In the past, people could prepare separate css files specifically for different IE versions like so:

<!--[if IE 8]>
<style type="text/css">
	/* css for IE 8 */
</style>
<![endif]-->

This is no longer the case, as Microsoft dropped conditional statements since IE 10. What worked for me in one ocassion for IE 11 (without affecting Edge) was using this media query:

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
   #selector {
        /* styles that will be applied for IE only */
   }
}
Posted in techTagged css, front-end

Post navigation

Getting into wp-admin through the file system
Картофи с наденица

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: micro, developed by DevriX.