I'm struggling to vertically align text in an asp.net dropdownlist control. Despite researching various solutions online involving padding, nothing seems to be effective. Below is the code I am currently using.
<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>
Here is the CSS being applied:
.dropdown
{
height: 35px;
background-color: Blue;
font-size: 15px;
padding-top: 10px;
padding-bottom: 10px;
}