Having this HTML
<select>
<option>ð¢Foo</option>
</select>
<select>
<option>Foo</option>
</select>
The secodn input is dispositioned. How to avoid this effect?
The UTF character is taller than the text, so it is displacing the select box.
I've added a bit of CSS to fix it - vertical-align: middle
to line the select boxes up with each other; and line-height: 1.75em
to make the character visible.
select {
vertical-align: middle;
height: 1.75em;
}
<select>
<option>ð¢Foo</option>
</select>
<select>
<option>Foo</option>
</select>
Try this.
select {
display: inline-block;
vertical-align: middle;
}
<select>
<option>ð¢Foo</option>
</select>
<select>
<option>Foo</option>
</select>
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