Solved

horizontal scroll bar <select> html tag  strut

Posted on 2006-06-12
4
713 Views
Last Modified: 2012-05-05
Hi,
How can i set up a horizontal scroll bar for <select> tag.
0
Comment
Question by:komlaaa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
reflection example 3 118
Adjusting width and height of dropdown produced using select n option HTML tags 4 94
maven project jars 7 58
instanceof  operator in java 26 103
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
Adults who share images on social media aren’t the only ones who need to worry about their privacy. Our culture’s tendency to share every move and celebration affects the privacy of our children, too.

740 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