0

i want to apply css only for the IE browser, when i browsed through the net, i got a approach which worked for many of the people but i am not able to acheive the same for IE browser using that code. below is my code

<!--[if IE]>
<style>
  div{
    border:solid 5px yellow;
    }
</style>
<![endif]-->

what am i doing wrong? i am using IE11.

note: i am using this code in the HTML, but still it is not working

UPDATE

i also tried this but it is not working for IE11

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {  
   /* Put your IE-only styles here. Works for IS 10 & IE 11*/
}
Lijin Durairaj
  • 4,910
  • 15
  • 52
  • 85

0 Answers0