How do I add line-heigh to a <select> using jQuery?
Posted
by Rohan
on Stack Overflow
See other posts from Stack Overflow
or by Rohan
Published on 2010-06-03T06:06:51Z
Indexed on
2010/06/03
6:14 UTC
Read the original article
Hit count: 169
I have a element
<select name="dropdown" id="dropdown">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
</select>
Now if I add a CSS line-height property to the dropdown, it doesn't work. How would I use jQuery to style this? I prefer not to use plugins, because this is the only styling I wish to apply.
© Stack Overflow or respective owner