azaytc
azaytc

Reputation: 63

Define height of select box

I have a problem with select box height. Is it possible to make select list shorter with css property or other way? see attached screenshot

enter image description here

Upvotes: 3

Views: 829

Answers (2)

Fredy
Fredy

Reputation: 2910

Maybe you can try this trick:

<select onmouseover="this.size=10;" onmouseout="this.size=1;">

See the demo : http://jsfiddle.net/h9SKM/

Upvotes: 2

Alex
Alex

Reputation: 421

What I suggested earlier does not work if you dont have multiple set on the select element makeing it a not general way of solving the problem.

AFAIK, there is no CSS-approach to this problem. You have to use Javscript,

Upvotes: -1

Related Questions