Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q67 How can I control the width of a select box?

irt.org | Knowledge Base | JavaScript | Form 1 | Q67 [ previous next ]

Q67 How can I control the width of a select box?

You can increase the width by padding out an entry with multiple ' '.

Alternatively you could have a dummy entry with '-------------' characters.

James Albert also points out:

You can also set the width of a select box through CSS:
<select name="province" size="1" style="width: 50mm">
...
</select>

Feedback on 'Q67 How can I control the width of a select box?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.