Setting the maximum width for a Select box
Posted on 2002-07-27
I have a Select box that is populated from a database. Some of the entries are 15 characters wide and some are 50. I'd like to be able to set a maximum width for the box of say 20 characters and just cut off (or better yet have a scroll bar like with a Textarea tag).
Here's a sample of the code.
search by employer:
<form name="form3" method="get" action="results.cfm">
<option value="<cfoutput>#rsEmp.Employer#</cfoutput>" ><cfoutput>#rsEmp.Employer#</cfoutput></option>
<input type="submit" value="Submit" name="empbut">
Thanks for the help,