views:

7815

answers:

4

IE seems to ignore the height set in CSS when rendering a HTML SELECT. Are there any work around's for this or do we have to just accept IE will not look as good as other browsers?

+2  A: 

There is no work-around for this aside from ditching the select element.

Ken Browning
+1  A: 

Use a UI library, like jquery or yui, that provides an alternative to the native SELECT element, typically as part of the implementation of a combo box.

Sparr
I use jquery. Can anyone point to a good SELECT replacement that works with jQuery?
Craig
like the one I linked to?
Sparr
+2  A: 

you can use a combination of font-size and line-height to force it to go larger, but obviously only in the situations where you need the font larger too

edit:

Example -> http://www.bse.co.nz EDIT: (this link is no longer relevant)

the select next to the big search box has the following css rules:

#navigation #search .locationDrop {
    font-size:2em;
    line-height:27px;
    display:block;
    float:left;
    height:27px;
    width:200px;
}
Darko Z
font-weight can also have an effect. "font-weight: bold;" was having a positive effect for me without even realizing it (until I removed it today and found this article ;)
Campbeln
A: 

See also inconsistent box model between input, select, ...

Michal Čizmazia