list box colour

Discussion in 'HTML' started by hey, Sep 3, 2003.

  1. hey

    hey Guest

    Hello,
    How do i change the background colour within a drop down list box? I applied
    a style to the <form> tage but it didn't work
    Is there anything i should change here, or is it something different?

    ..listbox {FONT-SIZE: 11px; FONT-FAMILY: Verdana,Arial,Helvetica,sans-serif;
    COLOR: #ffffff; background-color:#28A9EC; border-color:#ffffff; width:175}


    kudos
    web
     
    hey, Sep 3, 2003
    #1
    1. Advertising

  2. "hey" <swebster(NoSpam)@ripnet.com> wrote:

    > How do i change the background colour within a drop down list box?


    Don't.

    > I applied a style to the <form> tage but it didn't work


    Fine.

    > Is there anything i should change here, or is it something different?


    Yes. Well, just remove it. It really doesn't matter what your page
    actually contains and which elements might belong to class "listbox".

    > .listbox {FONT-SIZE: 11px; FONT-FAMILY:
    > Verdana,Arial,Helvetica,sans-serif; COLOR: #ffffff;
    > background-color:#28A9EC; border-color:#ffffff; width:175}


    That would be a nice exercise for a course in CSS: why is that style sheet
    completely wrong?


    --
    Yucca, http://www.cs.tut.fi/~jkorpela/
    Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
     
    Jukka K. Korpela, Sep 3, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    1,153
    David Wier
    Aug 5, 2005
  2. harry
    Replies:
    4
    Views:
    16,295
    harry
    May 31, 2004
  3. Gnarlodious
    Replies:
    4
    Views:
    17,616
    elizas
    May 5, 2010
  4. Craig

    Disabled Edit Box Colour

    Craig, Dec 5, 2003, in forum: Javascript
    Replies:
    4
    Views:
    85
    Grant Wagner
    Dec 10, 2003
  5. jodleren
    Replies:
    2
    Views:
    204
    Thomas 'PointedEars' Lahn
    Jan 12, 2008
Loading...

Share This Page