Dropdown list highlight colour

Giganews Newsgroups
Subject: Dropdown list highlight colour
Posted by:  goog…@colinsteadman.com (Colin Steadman)
Date: 12 Dec 2003

I have a dropdown list with a couple of dozen entries.  I can change
the backgroup and text colour.  But I cant find the CSS attribute
which changes the highlight colour which appears as the mouse moves up
or down the list.  At the moment its the default deep purple colour
you get in any windows app, but I'd like change this to a more
suitable colour for my site.

This is what I have already  -

<html>
<head>
<title>Dropdown Colour</title>
<style type="text/css">
option  {
        background: #E0E0E0;
        color:      #000000;
        highlight:  #C6C4BD;
        }
</style>

</head>

<body>

<select>
  <option>Shell</option>
  <option>Cabbage</option>
  <option>Beans</option>
  <option>Cheese</option>
  <option>Clock</option>
  <option>Monkey</option>
</select>

</body>
</html>

TIA,

Colin

Replies