Solved

Selected background color

Posted on 2014-03-24
3
261 Views
Last Modified: 2014-03-24
See attached.

This is a generated SELECT Option list. As indicated, we want to use different background colors for different classes of customers.

One of the colors we want to use (for the background) is blue.

But the default value for the selected item (at least in Firefox) is blue.

How can I change the default highlight color (background color) of the current selected item to a different color?
select-bgcolor.jpg
0
Comment
Question by:Richard Korts
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 300 total points
ID: 39951193
Not possible, if you want to do something like this you have to convert to a list (UL/LI etc)
0
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 200 total points
ID: 39951304
The default is not overridable, so just use a different shade of blue for contrast.

Cd&
0
 

Author Closing Comment

by:Richard Korts
ID: 39951340
I actually used purple because this class of customer is "VIP"

Thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now