To put it very simple, I want to change the background color of the main field (not sure what else to call it, it’s the field marked in red in the example) of a HTML element. I do not want to change the background color of the dropdown fields.
Is this possible? If so, how?
Source code:
<select>
<option>Item 1</option>
<option>Item 2</option>
<option>Item 3</option>
</select>
2
Answers
You can use css selectors: select and select option (I put red for options, but you can change color to whatever you like)
One way would be to style de
select
and theoption