/    Sign up×
Community /Pin to ProfileBookmark

Simple Drop-Down Menu Problem

I have a simple drop-down menu on my site, kind of like:

[quote]

<form>
<select name=”cars”>
<option value=”volvo”>Volvo</option>
<option value=”saab”>Saab</option>
<option value=”fiat”>Fiat</option>
<option value=”audi”>Audi</option>
</select>
</form>

[/quote]

except with MUCH more links. Since it’s placed near the bottom of the page, it opens up to the top. Now what I want it to do is open to the [B]bottom[/B] , so I think I should decrease the number of links displayed when you open it up. The only attribute I can think of is “size=3” in the <select> tag, but that doesn’t make it drop down anymore.

Thanks for any help on this potentially stupid question. I hope this makes sense.

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceApr 01.2005 — Not a stupid question. This could be called a "failing" in the functionality given to the SELECT element. In other words... There is no attribute or CSS that will properly control the size, or drop direction, of the drop-down list itself. There is one hack that I've seen. This involves using the option grouping feature -- except you specify only a single group. Then you apply a CSS height setting to the option group. This hack appears to work in at least SOME other browsers -- but not IE.
×

Success!

Help @barnsworth spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...