Forums

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)

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #42720
    FatStraw
    Member

    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?

    #124533
    chrisburton
    Participant
    #124534
    FatStraw
    Member

    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!!!

    #124535
    chrisburton
    Participant

    @FatStraw You’re welcome. I think I got that code backwards so here is an update: http://jsfiddle.net/JhE79/1.

    #124537
    FatStraw
    Member

    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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.