Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Height of a closed select (combo box)

0 views
Skip to first unread message

erez

unread,
Jul 14, 2002, 4:34:01 AM7/14/02
to
Hi all,
I need to set the height of a closed select (combo box). From what I
see the CSS height style doesn't work on select tag in IE5.5. It is
very strange since it works in Netscape 6 and it works for input tags.
The only thing that affects the select height is the text font size.
Surrounding the select with a div tag with overflow:hidden, makes
things better, however I prefer another way.

Does anyone have a solution or a workaround?

Thanks,
Erez

Here is a reproduction: select VS edit.
<html>
<head>
</head>
<body>
<select style="height: 18; font-family: Courier New; font-size:
20px;">
<option>First</option>
<option>Second </option>
<option>Third</option>
</select>
<input type="edit" style="height: 18; font-family: Courier New;
font-size: 20px;"/>
</body>
</html>

Gazza

unread,
Jul 14, 2002, 12:34:46 PM7/14/02
to
Couldn't you just use good old fashioned HTML? you'd just have to add
size="18" to the select tag.

--
-Gazza
(The Cheese)

MY DIGIMON TAMERS RP
http://DigimonTamersRP.cjb.net
http://webpages.charter.net/gazza/index.html
"erez" <egree...@jacada.com> wrote in message
news:d145490.02071...@posting.google.com...

erez

unread,
Jul 15, 2002, 3:14:51 AM7/15/02
to
"Gazza" <Hel...@LeaveMeAlone.NOW> wrote in message news:<uj3a7bh...@corp.supernews.com>...

> Couldn't you just use good old fashioned HTML? you'd just have to add
> size="18" to the select tag.
>
> --
> -Gazza
> (The Cheese)
>

Erez:
If I'm not wrong, size > 1 makes the combo (select) always to be open
(dropped down), what I need, is to set the height of a closed combo.
Thanks,
Erez

Gazza

unread,
Jul 25, 2002, 7:01:58 PM7/25/02
to
"erez" <egree...@jacada.com> wrote in message
news:d145490.02071...@posting.google.com...

Um actually I think you just might be wrong...I use it on my website and it
works fine.


0 new messages