Forum Moderators: not2easy

Message Too Old, No Replies

Relative height value for select tag in Mozilla/Firefox?

Looking to set relative height for select tag from css

         

longest name allowed

3:33 pm on Jun 2, 2004 (gmt 0)

10+ Year Member



Hello,

Is there a way to set a relative height value for the select tag in Mozilla/Firefox from css? When the user increases¦decreases the text size(Ctrl + +¦-), the combobox only grows width-wise, not height-wise. I haven't figured out how to tie it into a relative text position ( height:[n]ex; ). On a side note, IE requires that the font be set on select instead of option for the height to grow with the font size. This was the IE solution for the problem.


Ex css.
select{
font:normal normal normal 0.8em/1.4em geneva,lucida,arial,helvetica,sans-serif;
padding:0;
margin:2px;
width:auto;
height:2em;/*doesn't work*/
}
option{
line-height:1.4em/*doesn't work*/
padding:0.1em;
width:auto;
height:3ex;/*doesn't work*/
}

Thank you, J

longest name allowed

3:41 pm on Jun 2, 2004 (gmt 0)

10+ Year Member



Sorry for the sloppiness. The line-height attribute for the option obj should have read ...


line-height:1.4em;/*doesn't work*/

This is correct in the original.
Sincerely, J