Answers for "styles only for IE"

CSS
0

only ie css

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
   #myElement {
        /* Enter your style code */
   }
}
Posted by: Guest on March-11-2021
1

styles only for IE

@media all and (-ms-high-contrast:none)
     {
     .foo { color: green } /* IE10 */
     *::-ms-backdrop, .foo { color: red } /* IE11 */
     }
Posted by: Guest on March-12-2020

Browse Popular Code Answers by Language