How do I vertically align a text in a asp.net dropdownlist control? I researched the web and found several proposed solutions with padding etc. but none seem to work. This is my code.
<asp:DropDownList ID="DropDownList1" runat="server" CssClass="dropdown">
<asp:ListItem>sds</asp:ListItem>
<asp:ListItem>ddd</asp:ListItem>
<asp:ListItem>xxx</asp:ListItem>
</asp:DropDownList>
CSS:
.dropdown
{
height: 35px;
background-color: Blue;
font-size: 15px;
padding-top: 10px;
padding-bottom: 10px;
}