Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove blue background in select dropdown IE9

I am using IE9 and can't remove the blue background when a select dropdown is focused. When an item is selected from any of the drop downs the element is overlaid with a blue box. It doesn’t occur on Chrome or Firefox.

This code removes it for IE10 and Edge

select::-ms-value {
    background: none; /* remove blue background on ie10/ie11 when selected*/
    color:#5a5a5a;

}
like image 867
user2016193 Avatar asked Nov 21 '25 08:11

user2016193


1 Answers

I had the same problem and I resolved it using this:

select:focus::-ms-value {
      background-color: white; 
      color:#000;
}

I hope this helps.

like image 130
Facyo Kouch Avatar answered Nov 23 '25 23:11

Facyo Kouch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!