[Home]How can I set the width of a select field

HomePage | RecentChanges | Preferences | Newbie Help

REDIRECT-- see width of a select field

How can I set the width of a select field?


Comments -- non-JavaScript solution, use CSS
Using undocumented <SELECT WIDTH=... > in Netscape 4 is quite OK (as mentioned in one of the linked documents available under the above URL), but... if the width of a select element that results from rendering HTML is greater than that specified in the width parameter, the value of this parameter is skipped. The same holds for undocumented <INPUT TYPE=BUTTON WIDTH=...>. Moreover, I'm not sure if this width parameter works on non-Windows OS's.

-- Mon, 09 Apr 2001 14:30:30 +0200, Przemyslaw Kowalik on comp.infosystems.www.authoring.html


<select style="width:20em;">

browser support varies


HomePage | RecentChanges | Preferences | Newbie Help
This page is read-only | View other revisions
Last edited March 10, 2002 8:49 pm (diff)
Search:

This FAQ is happily hosted by Betadome Digital Media