Is it possible to have different colours for different items in the dropdown list?
For example:
Option 1 = green
Option 2 = blue
etc
In the lower section, change the first drop down setting (Cell Value) to Specific Text. Change the second drop down to containing. In the third control, enter =A1, the cell that contains the text value red. Click the Format button, click the Font tab, choose red, and click OK.
To change the selected option color in CSS, we use the :checked pseudo-class selector. The :checked selector targets only the selected option of a dropdown.
here is what you want Styling Dropdown Lists
<style type="text/css">
option.red {background-color: #cc0000; font-weight: bold; font-size: 12px;}
option.pink {background-color: #ffcccc;}
</style>
<select name=colors>
<option class="red" value= "../getting_started/">Getting Started </option>
<option class="pink" value= "../getting_started/html_intro1.htm">- Intro to HTML
</option>
</select>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With