Page 1 of 1

hi,how can i set a transparent background for selectbox?

Posted: Wed Aug 08, 2012 6:23 am
by mekha
hi,how can i set a transparent background for selectbox?
thanks

Re: hi,how can i set a transparent background for selectbox?

Posted: Wed Aug 08, 2012 1:00 pm
by Christopher
If you mean inside the select box, then you will need to implement it yourself. The select is rendered differently by different browsers.

Re: hi,how can i set a transparent background for selectbox?

Posted: Thu Aug 09, 2012 3:38 am
by social_experiment
You can use the css below but there is a catch

Code: Select all

	select {
		background-color: rgba(255, 0, 0, 0.5);
	}
As Christopher mentioned different browsers render elements differently so the declaration above will work for IE9 and FF but Chrome will only make the dropdown section's background transparent. Also remember that the above will probably not work prior to IE9 so you may need to use an image for that purpose in an IE-only stylesheet.