1

I am having problems with font-weight on a select element. when applying font-weight: bold; the last letter gets cut off, because its bumping in to the right side. I searched and did not find any answer, even though it sounds like a problem that a lot of people have experienced, thanks.

select{
    font-weight: bold;
}
<select>
    <option>Option</option>
</select>

Here is a jsfiddle http://jsfiddle.net/pdg6805/3v58gsqm/

David Genger
  • 875
  • 10
  • 25

2 Answers2

1

sometimes in some cases applying bold to font-weight will change the width of that element and being wider causes cutting off, so you could reserve some more space for it by setting width in select.

ameerosein
  • 523
  • 3
  • 16
1

One simplest way is to add width to select.

select{
    font-weight: bold;
    width:150px;
}
    <select>
     <option>Option &nbsp;</option>
   </select>

Or

select {
   font-weight:bold;
  }
    <select>
     <option>Option &nbsp;</option>
   </select>
WitVault
  • 23,445
  • 19
  • 103
  • 133