Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I disable the scroll bar in the "select" object?

Status
Not open for further replies.

lovekang

Programmer
Feb 16, 2006
86
KR
how can I disable the scroll bar in the "select" object?
I think "overflow:visible" is not applicable to "select".

any ideas?
 
Select boxes do not have scroll bars.
Perhaps you have the select box inside another container such as a div or span that could have it's overflow property set to disallow scrollbars.

The problem though is that there is no way to readily control how wide a select box will display other than to control the size and length of text that goes into it.
Put it inside a container set not to be able to display scrollbars and you end up with a select that gets chopped at the end.

At my age I still learn something new every day, but I forget two others.
 
Why do you want to disable the scrollbar? What effect are you trying to achieve? You can set the "size" attribute to be greater than or equal to the number of items in the select box so it doesn't scroll vertically. Is that what you're looking for?

Adam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top