views:

18

answers:

2

This problem seemed quite simple (overflow:hidden, right?) until I couldn't solve it. I have a simple multi-line SELECT with defined size:

<select size="10" name="elements">
... 
</select>

MSIE and Opera show vertical scrollbar only when needed, but Firefox and Chrome always display vertical scrollbar in disabled state.

I tried setting overflow, overflow-y, and even overflow-x, but nothing works. Any ideas?

A: 

You can't, apparently: http://www.webdeveloper.com/forum/showthread.php?t=154496

Chris Dennett
seems like true, unfortunately.
Sergei
A: 

The only thing I can think of is to overlap the scrollbar by positioning an image or solid DIV with a higher z-index right on top the SELECT scrollbar. But this would be an ugly hack.

Gert G