Forum Moderators: not2easy

Message Too Old, No Replies

adjusting size of form drop down box with out scroll bar

Default is 11 in IE, 21 in Firefox. How do i change it

         

lgn1

3:16 am on Sep 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a form drop down box with 18 pull down items and it displays nicely in Firefox, which allows 21 pull down items before a scroll bar appears

I find that having to scroll after displaying only 11 items in IE rather annoying.

How do I increase the number of drop down items in a form drop down box.

I looked all thru html and CSS specs and can't find it. Am I missing something?

Setek

1:27 am on Oct 2, 2007 (gmt 0)

10+ Year Member



Have you tried adjusting the margin or padding on the
option
elements?

Form controls are up to the User Agents (browsers) as to how customisable they should be, however, the consensus by the W3C seems to be that the less a UA customises a form control, the better.

Form controls are used throughout an operating system with a certain style of design (bullet-style characters for passwords on XP rather than stars, a blue outer glow on active fields in OS X) and the argument is that these should remain consistent in a UA, so a user can easily identify where they can input data/change things.

Basically what I’m saying is, with how inconsistent form controls render cross-platform, sometimes you’re better off spending your time on something else. In any event, whatever you do, it won’t display the same in Safari (even 3-beta) :)

[edited by: Setek at 1:28 am (utc) on Oct. 2, 2007]

Drag_Racer

9:41 am on Oct 2, 2007 (gmt 0)

10+ Year Member



sorry, that property is not accessable. You could make your own though with a div...