Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

Feedback on: irt.org FAQ Knowledge Base Q858, September 26, 2000 at 23:02:29:

You are here: irt.org | About | Feedback | 1795 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q858

Sent by
Amos Bannister on September 26, 2000 at 23:02:29:

Worth reading

Too short

Just right

Although this was a reasonable answer, it was not technically correct when it stated that it is not possible to limit the width of a select box in Netscape.

To do this you must populate the select box using Javascript. You can specify a WIDTH attribute which will specify the width in pixels (although this is not such a good idea), or you can put one dummy <OPTION> entry which is the width you want. Then you delete the option using Javascript and add all the options you wish to appear in the list. The select box will be forced to stay the size of the original (dummy) entry.

Note: This will not work on IE, so you would need to also include the STYLE specification in the SELECT tag for IE.

Amos Bannister

Other feedback on 'irt.org FAQ Knowledge Base Q858' - show all

©2018 Martin Webb