tags:

views:

103

answers:

1

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.

A: 

$("#dropdown").css("line-height", value)

why do you need to apply a line-height to the dropdown btw?

corroded
That makes no change to the line-height.I want to add a line-height for visual purposes.
Rohan
you want to increase the line-height or the height of the select tag? what value did you put?
corroded
I put 250 px, to test. And I want to increase the line-height.
Rohan
try doing it without the space 250px or in single quotes? '250px'
corroded