I have the following drop down list:
<asp:DropDownList ID="ddlSubdivision" AppendDataBoundItems="true"
runat="server" Height="30px" Width="450px" AutoPostBack="True"
OnSelectedIndexChanged="SubDivision_Changed" CssClass="dropdown"
OnClick ="">
In this dropdown list, I want to change the color of the options on mouse over. By default, in Chrome it shows up as Blue, but I want to change it to red.
I have tried the following CSS code:
.dropdown {
position: relative;
display: inline-block;
}
option::selection {
background: #ffb7b7; /* WebKit/Blink Browsers */
}
But this does not seem to work. How to achieve the required functionality?