Add a background color in selector

brentrat

New Member
I wanted to put a small rectangle of green color in a selector. I tried a lot but could not find a solution. \[code\]<select> <option value="http://stackoverflow.com/questions/12804103/all_clicks" selected="selected" class="greenRect">All clicks</option> <option value="http://stackoverflow.com/questions/12804103/search_camp">Search campaigns</option> <option value="http://stackoverflow.com/questions/12804103/search_links">Search links</option> <option value="http://stackoverflow.com/questions/12804103/none">None</option></select>\[/code\]\[code\].greenRect{ height:15px; width:15px; backround:#7db22b; border-radius:2px;}?\[/code\]http://jsfiddle.net/DVyQC/Similar to shown in figure! Please help me.
kiCaK.png
 
Back
Top