I am creating an asp: DropDownList element with custom CSS. I set the height and try to make the text appear in the middle of the element, not at the bottom. Vertically Aligned: Medium doesn't seem to work, and if I add a bottom to push it from below, IE has an ugly gap between the arrow to the right of the drop-down list and the border. This is my CSS for now:
.dropdowndiv
{
font-size:10pt;
margin-bottom:2px;
height:26px;
width:220px;
border:1px solid #d5d5d5;
text-transform:uppercase;
vertical-align:middle;
}
source
share