The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How to apply background color to first item in a Select Box form? (No Javascript)
Here is an example code: http://jsfiddle.net/UBkVg/
I am trying to set the background-color of the form control selection box to be something other than white. Is it possible to do with CSS?
@FatStraw http://jsfiddle.net/JhE79/
omg. I feel like a newb now. How did I miss that??? I literally spent an hour trying to find css hacks and messing around with pseudo classes/elements trying to get the background to show up lol!
Thanks!!!
@FatStraw You’re welcome. I think I got that code backwards so here is an update: http://jsfiddle.net/JhE79/1.
I kept trying to make changes to the “selection option” part but never tried to do it with just “selection”. :(
Thanks again for the help