4
I’m trying to line up the text inside a <select>
but it is only aligned (by default) using Chrome and IE11 browsers (amazingly enough), only in FF(v27.0.1) that the text is at the top.
I’ve tried to use vertial-align:middle
but it hasn’t changed at all.
I’d like it to be aligned vertically without using a padding-top
for the element because the same disarray in other browsers.
HTML
<select name="disciplina" id="disciplina">
<option value="00">Disciplina</option>
</select>
CSS
select {
width: 200px;
height: 38px;
}
It’s really tricky this, if Voce add a padding gets misaligned in others
– RodrigoBorth
I actually posted an answer with
padding
and did not. Now I was curious about the solution– CesarMiguel