40 users online (1 members and 39 guests)  

Thread: CSS and select


  Results 1 to 2 of 2

Related

  1. Select Query    Forum: Databases
    Replies: 2
  2. Cannot Select DB using mssql    Forum: PHP Forum
    Replies: 2
  3. Propogating select box    Forum: PHP Forum
    Replies: 0
  4. links and select box    Forum: CGI Perl Forum
    Replies: 0
  5. SELECT MATCH ... AGAINST problem    Forum: PHP Forum
    Replies: 0
  1. #1
    lilayus02's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2006
    Posts
    1

    Smile CSS and select

    Hi, does anyone know the CSS to change the font and background colour on a select box. My code doesn't work and ive tried without luck searching the net for the solution. This must be really simple.
    http://www.collagen-and-hydroderm.com

  2. #2
    krak_d's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2004
    Location
    Liverpool
    Posts
    166

    Re: CSS and select

    Hi lilayus02,

    to apply colour to the background of your select box add the following to your style sheet:

    Code:
    select  { 
     background-color: #666699; 
     color: #ffffff; 
    }
    You may want to choose nicer colors than the ones above though!!



Tags for this Thread