Minimum width select

  • Thread starter Michael Satterwhite
  • Start date
M

Michael Satterwhite

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.

tia
---Michael
 
S

Steve Pugh

Michael Satterwhite said:
If I create a Select input box, but don't populate it (yet), it appears as a
very narrow box.

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.
a "width" clause doesn't appear to have any effect,

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.
How can I specify the width of the select box? Preferably the minimum width.

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

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top