Minimum width select

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
If I create a Select input box, but don't populate it (yet), it appears as a
very narrow box. a "width" clause doesn't appear to have any effect, and
"size" is for height - not width.

How can I specify the width of the select box? Preferably the minimum width.


Re: Minimum width select

Quoted text here. Click to load it

Do don't do that. If you really need to populate a select element via
client side scripting then don't create the select until you're ready
to start populating it.

Quoted text here. Click to load it

What do you mean by 'clause'? If you mean HTML attribute then there is
no such thing for select. If you mean CSS property then it does work
in many modern browers.

Quoted text here. Click to load it

min-width is the minimum width but isn't supported by IE.


"My theories appal you, my heresies outrage you,
 I never answer letters and you don't like my tie."  - The Doctor

Site Timeline