0

I've got a dropdown list. Each row is in a different font type. Now the problem is that each row height is different due to the different font type.

My question is that how do I extend the height so each row has a equal height in my drop down list?

enter image description here

EDIT 1:

  <select class="fonts">
     <option style="font-family: 'Comic Sans MS'">Comic Sans MS</option>
     <option style="font-family: Arial">Arial</option>
     <option style="font-family: 'Times New Roman'">Times New Roman</option>
  </select>

EDIT 2:

Here is a quick Fiddle - I'm testing in IE

Community
  • 1
  • 1
Becky
  • 5,467
  • 9
  • 40
  • 73

1 Answers1

0

use something like:

option {
   padding: 30px 10px;
}
monxas
  • 2,475
  • 2
  • 20
  • 36
  • thanks. I did what you've suggested but no luck `.fonts option{ padding: 30px 10px; }` – Becky May 19 '15 at 08:49
  • I see, it works for firefox, but it doesn't in chrome or other webkit browser... https://jsfiddle.net/mq46c1ao/ – monxas May 19 '15 at 08:54