FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Help me about Drop Down List Boxe?

 


lancerfootwear
Question
Dear Sir/Madam

I need a dropdown with a fixed width e.g. 10px and when i opens the dropdown box the list below will adjust according to the option values and will not extend the box itself.

Here is what i want to do:

<select name="lstBox" style="width:10px">
<option value="1">Large Option Value 1 (One)</option>
<option value="2">Large Option Value 2 (One)</option>
<option value="3">Large Option Value 3 (One)</option>
</select>

now as u noticed the value is list box are large but the width is fixed. Now when i clicks the dropdown the values gets cut down dependign upon the mentioned with. I need the list to show full values but don't want to increase the list width itself

If anyone can help me in this plz do send me email vikash.bhardwaj@agreeya.com or bhardwaj_vikas9@yahoomail.com
meejoku
hmmm....

i believed its not posible. I mean, not posible using <select>.
Another options is using pop-up box.
you create field text and a button.
when user click the button, the system pop-up a page that containt value of the list.

Or using javascript, with hide/unhide technique, you create small box with value of the list. when user click the button, system show the box.

hope this could help you.

regards,
Azmo
I have never heard or seen anything like this.. doubt that it is possible with a select box.. go with javascript, flash or work ur brains out doing something imba with html/css.. very easy if you have a fast server and wanna do some ugly fixing.. like a link.. klick it and u come to site2.html where u have ur links.. nothing I recomend tho..
Star Wars Fanatic
Uh, when I test it, the full values automatically are shown, no matter what the width is set to...
xanarulz
I don't think you can set a width for a drop down list?
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.