Select option - selected-color

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oeivind

    #1

    Select option - selected-color

    Hi at all !
    When I select an option or the SELECT item gets focus, it turns blue, I want
    to override this and make it a different color.
    Is there some cure for this ?

    Oivind


  • Michael Winter

    #2
    Re: Select option - selected-color

    On Tue, 5 Oct 2004 14:10:40 +0200, Oeivind <ow@ds.no> wrote:
    [color=blue]
    > When I select an option or the SELECT item gets focus, it turns blue, I
    > want to override this and make it a different color.
    > Is there some cure for this ?[/color]

    No. It's an operating system setting.

    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.

    Comment

    • David Dorward

      #3
      Re: Select option - selected-color

      Oeivind wrote:[color=blue]
      > When I select an option or the SELECT item gets focus, it turns blue, I
      > want to override this and make it a different color.
      > Is there some cure for this ?[/color]

      If there is, then the correct tool would be CSS, not JavaScript.

      In theory you could do:

      option {
      background-color: red;
      color: white;
      }

      You are likely to find rather limited browser support for this. Generally
      speaking, leaving form controls unstyled is a good idea. Styled form
      controls have a habit of generating confused users.

      --
      David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
      Home is where the ~/.bashrc is

      Comment

      • David Dorward

        #4
        Re: Select option - selected-color

        David Dorward wrote:
        [color=blue]
        > In theory you could do:
        >
        > option {[/color]

        Whoops. Make that:

        option:hover {

        --
        David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
        Home is where the ~/.bashrc is

        Comment

        Working...