Solved

horizontal scroll bar <select> html tag  strut

Posted on 2006-06-12
4
673 Views
Last Modified: 2012-05-05
Hi,
How can i set up a horizontal scroll bar for <select> tag.
0
Comment
Question by:komlaaa
  • 2
  • 2
4 Comments
 

Author Comment

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

<select .....>
      <options ....../>
</select>
0
 
LVL 8

Accepted Solution

by:
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>
</select>

colr__
0
 

Author Comment

by:komlaaa
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.
0
 
LVL 8

Expert Comment

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

colr__
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
spring dependency injection using java config 2 78
stateless EJB with glassfish 2 70
parse example 13 86
spring example errors 33 201
Moving applications to the cloud or switching services to cloud-based ones, is a stressful job.  Here's how you can make it easier.
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

13 Experts available now in Live!

Get 1:1 Help Now