horizontal scroll bar <select> html tag strut

Hi,
How can i set up a horizontal scroll bar for <select> tag.
komlaaaAsked:
Who is Participating?
 
colr__Connect With a Mentor Commented:
The horizontal scroll bar will only appear if the horizontal area taken up by your <option> elements is bigger than the avaiable space of the <select>. There is no way to force a horizontal scrollbar in this html element, it just takes as much room as it needs. You can however, force the vertical size via the following:

<select size="5" >
      <option>sds fdgfd fd fd fdg</option>
      <option>sds dfg fdg fd</option>
      <option>sdsg fdg d</option>
</select>

colr__
0
 
komlaaaAuthor Commented:
to be more clearer,
when i say <select> tag, i meant something like:

<select .....>
      <options ....../>
</select>
0
 
komlaaaAuthor Commented:
>The horizontal scroll bar will only appear if the horizontal area taken up by your <option> elements is bigger than >the avaiable space of the <select>.
I am afraid, mine is not behaving like that.
0
 
colr__Commented:
You cannot force a horizontal scrollbar on an HTML select.

colr__
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.