When you select the colored option (Banana).
On IE you can see the background color when the option is selected
(the select is closed).
But on FF and Chrome you can't see the color when the option is
selected.


On Feb 22, 12:44 pm, "Mauricio \(Maujor\) Samy Silva"
<css.mau...@gmail.com> wrote:
> background-color CSS property is well supported by IE and FF (Chrome not
> tested)
> So, double check your HTMl and CSS sintax.
>
> Here an example working:
>
> CSS:
> #a { background-color:#FFFFA0; }
>
> HTML
> <form>
> Select your favorite fruit:
> <select id="fruits">
>   <option>Apple</option>
>   <option id="a">Orange</option>
>   <option>Pineapple</option>
>   <option style="background-color:#f00;">Banana</option>
> </select>
> </form>
>
> Maurício
> --------------------------------------------------------------------------- 
> ----
>
> > Hi,
> > I've added: style="background-color:#FFFFA0;
> > to one of the options in a select it works well on IE but not on FF
> > and Chrome.
> > Any Ideas?

Reply via email to