Colored list options with CSS

Using CSS, you can color your <select> and contained <option> elements, or at least to a certain extent. Mozilla seems to handle things better, thanks to its own form widgets, as opposed to IE's use of standard OS controls. A slight bit of JavaScript is added to the <select> to give it the same color as the selected <option>.

<select class="cat1" 
---------------^ set this to the initially select element
        onchange="this.setAttribute('class', this.options[this.selectedIndex].getAttribute('class'));">
-----------------------^ set the class attribute's value of the <select> to the one of the selected option