PDA

View Full Version : CSS select option{background-color:none;}



brndn
August 2nd, 2008, 11:24 PM
hi all how do you set the color of the select item to none ore even better.
how do you set the option using filters eg.


select{background-color:#ffffff;
-moz-opacity:.40;
opacity:.40;}

select option{filter:alpha(opacity=40);
-moz-opacity:.40;
opacity:.40;}


not sure if this element has the capacity to have filter applied.

Much appreciated for any insights

cheers brndn

jel3
August 3rd, 2008, 02:52 AM
form select,
form select option{
filter:alpha(opacity=40);
-moz-opacity:0.4;
opacity:0.4;
}
or use:
background: transparent;

to remove the bg from the select while it's closed.

brndn
August 3rd, 2008, 11:19 AM
yeh thanks for that. I however dont thing that the filter class extends to the option atributes otherwise this simple code should work.

any correct me if im wrong

cheers