Answers for "css for internet explorer only"

CSS
2

css for internet explorer only

@media all and (-ms-high-contrast: none), 
               (-ms-high-contrast: active) {
  /* IE10+ CSS styles goes underneath */
  #ie11 h2 {
    color: #fff;
  }
  #ie11 h2:hover {
    color: gray;
  }
}
Posted by: Guest on October-11-2020
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