Is it possible to have different colours for different items in the dropdown list?
For example:
Option 1 = green Option 2 = blue etc
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>
1.4m articles
1.4m replys
5 comments
57.0k users