/    Sign up×
Community /Pin to ProfileBookmark

Number of dropped down options in select form

Dear all,

i am looking for a way to set the number of option which drop down from a select form. In IE, standard is 11, and if you have 12, like me, this isnt that user-friendly. I thought this would be a standard problem CSS can handle and solve, but searching the I didnt give me any answers. Doesnt anyone know how to set this number in CSS (or plain HTML) ?

Also, I didnt find some quick-reference referring to the CSS properties of the select tag. As every tags attributes and properties can be modified by CSS/DHTML/Javascript, i thought i would find one. Doesnt any know a good and complete (!) overview of the CSS properties of -ALL- HTML tags ?

Thanks,

ChouChou

to post a comment
CSS

6 Comments(s)

Copy linkTweet thisAlerts:
@toicontienMar 05.2004 — http://www.w3schools.com/css/css_reference.asp

http://www.w3.org/TR/CSS2/

Those are the two places I use. CSS does very little to mess with form elements, as the look and feel of those elements is largely determined by the operating system and user preferences.

So the short answer to you question is no.
Copy linkTweet thisAlerts:
@ray326Mar 05.2004 — Actually CSS can do a tremendous amount of styling to form-contained elements if the browser allows it. Of course once again IE is on the short end of the stick in that respect.
Copy linkTweet thisAlerts:
@chouchouauthorMar 08.2004 — Oké thanks for these answers.

I was under the impression that some -select- property would exist in CSS, but the references tell me it doesnt.

I was wondering whether this is a good thing for the user-friendlyness of websites. On the one hand, every browser will have the same look and feel at each websites, as not everything can be messed up. On the other hand, some assets of the look and feel cannot be tweaked for optimal performance. Furthermore, it would be a good thing if every website would look the same in each browser. This would increase its use.

I think it would be a good if in CSS every aspect of the presentation of websites could be controlled to maximize their use.

ChouChou
Copy linkTweet thisAlerts:
@ray326Mar 08.2004 — I was under the impression that some -select- property would exist in CSS, but the references tell me it doesnt. [/QUOTE]
There's no need for select to be specifically addressed in CSS because select, option and optgroup are tags that can be styled as any other tag can.

Here's a page I built to explore just such ideas.

http://blab-n-lab.home.comcast.net/lab/styletest.html
Copy linkTweet thisAlerts:
@toicontienMar 10.2004 — I think chouchou wanted a CSS property to change the number of items that are visible once you click on a drop-down list. You can't alter that number because of screen resolution problems. You could specify a greater number of visible items in the drop-down list than what can fit on a screen, be it at 800x600 or 640x480, or whatever.

It's more to ensure usability and that ignorant web designers (not talking about you ? ) do not make drop-down lists that take up more screen height than a user has.
Copy linkTweet thisAlerts:
@ray326Mar 10.2004 — OIC
×

Success!

Help @chouchou 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...