horizontal scroll bar <select> html tag  strut

Posted on 2006-06-12
Last Modified: 2012-05-05
How can i set up a horizontal scroll bar for <select> tag.
Question by:komlaaa
  • 2
  • 2

Author Comment

ID: 16889415
to be more clearer,
when i say <select> tag, i meant something like:

<select .....>
      <options ....../>

Accepted Solution

colr__ earned 125 total points
ID: 16892261
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>


Author Comment

ID: 16895744
>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.

Expert Comment

ID: 16900610
You cannot force a horizontal scrollbar on an HTML select.


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
change size of out.write buffer 1 87
logging jar 1 106
some methods private some are not 8 198
Limiting the number of characters a user can type in a text field 6 51
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Note: This is the second blog post in a series on email clearinghouses (   Every month t…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now