Question : Styling a Dropdownlist using CSS

Hi,

I have a Dropdownlist in my web site and I am trying to style it to my liking. Right now I have the code shown below. It works fine but I would also like to style the drop down items. Right now they have a blue background (see attached image) when they are selected - I would like to set it to something else. I can't figure out how to do that so I need help.

Best regards
RTSol
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
.NET
<asp:DropDownList ID="ddlLang" runat="server" CssClass="ddSmall" AutoPostBack="True"
    OnSelectedIndexChanged="ddlLang_SelectedIndexChanged">
</asp:DropDownList>

CSS:
.ddSmall
{
   font-size: 8pt;
   font-family: Verdana; 
   background-color: #2D2D2D; 
   color: White; 
   border-color: #2D2D2D;
}
Attachments:
 
Dropdownlist
Dropdownlist
 

Answer : Styling a Dropdownlist using CSS

Random Solutions  
 
programming4us programming4us