I want to vertically align the text in select box. I tried using
select{
verticle-align:middle;
}
however it does not work in any brows
I used to use height
and line-height
with the same values, but the proved to be inconsistent across the interwebs. My current approach is to mix that with padding like so.
select {
font-size:14px;
height:18px;
line-height:18px;
padding:5px 0;
width:200px;
text-align:center;
}
You could also use padding
for the horizontal value instead of the width
+ text-align