0

Kindly read my Note Points as my main problem exists there only.

As I am using a normal tag in html.

Code as follows:

<select>
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="opel">Opel</option>
  <option value="audi">Audi</option>
</select>

Here, as we all know that the values on hover, the color that comes by default is blue (i.e. a system color) But I want a color other than blue.

Note: 1. It should work mainly in the Chrome browser. 2. Avoid JavaScript/jquery code.

Thanks in advance pals !!!

ProgrammerPer
  • 1,125
  • 1
  • 11
  • 26
  • Possible duplicate of [How to change colour of blue highlight on select box dropdown](https://stackoverflow.com/questions/19388011/how-to-change-colour-of-blue-highlight-on-select-box-dropdown) – GoGoris May 07 '19 at 10:45
  • @GoGoris This issue to be resolved without using javaScript and JQuery. So only have raised this Question in plain HTMl & CSS. – Raghu Kiran K S May 07 '19 at 11:15
  • 1
    Possible duplicate of [Changing – Daegarys May 07 '19 at 14:17

1 Answers1

2

Changing <select> highlight color

Changing the blue color on the options is not possible using css

Daegarys
  • 99
  • 8
  • More information: https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Styling_HTML_forms https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Advanced_styling_for_HTML_forms – GoGoris Jul 01 '19 at 14:12