In some configuration, HTMLsselect` element shows an unwanted space on the bottom margin of the select element. It's a bit strange, as the margin shows only in certain circumstances like font-size is set to 16px, but on the other hand, it works perfectly cool for any other values.
I've tried to remove any styles from select and option elements. Still not works.
I've tried to increase the amount of options elements. And it has worked - when I have 3 options, there's no margin. When I have 2 options, the margin occurs.
I've tried to set select's font size to another than 16px - and it has worked. But I want it to be 16px.
The bug occurs only in Chrome though.
select {
font-family: "Open Sans", sans-serif;
font-size: 16px;
appearance: none;
background-color: #fff;
height: 32px;
width: 54px;
border: 1px solid #a2a2a2;
border-radius: 3px;
padding: 2px 10px;
}
<select>
<option value="1">1</option>
<option value="2">2</option>
</select>
I expect no unnecessary margins at my select element.
This is what I mean: enter image description here