How can I change the background color of the select item ? I’m trying with option and div but it doesn’t work well. Can someone help me, please. Thank’s.
I’m trying to make a change language select but i don’t know how to implement this on my website.
<div style="background-color: blue"> Your content here. </div>
Do you want the select to have the color, the option elements, or just one of the option elements?
You can’t, not cross browser. Styling changes affect different browsers in different ways; in some you have some level of control, in some you don’t. Easiest way is just leave browser styling in place for the <option>
s (the <select>
control itself is fine, styled same way as other inputs)