Solved

horizontal scroll bar <select> html tag  strut

Posted on 2006-06-12
4
700 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
xjc and jaxb 2 93
eclipse luna javeEE perspecive missing 5 110
Why my table column Id is not passed to java object? 4 39
login form jsp example 2 26
If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
This tutorial shows how to create a greeting card by combining two image layers and a text layer on a PC using a free image editing app.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

809 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