I wonder why CSS' height can't resize a 'select' element in HTML.
<select>
<option>One</option>
<option>Two</option>
</select>
and CSS:
select {
height: 40px;
}
Thanks in advance!
You should use line-height along with. Below fiddle shows you the same.
http://jsfiddle.net/pckh7spw/
select {
height: 40px;
line-height: 40px;
border: 1px solid #ccc;
width: 200px;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With