How do you make the select box a certain width? It automatically widens to the longest <option> value. I am filling it from a database table and want to make my form look more professional. Is it possible?
Printable View
How do you make the select box a certain width? It automatically widens to the longest <option> value. I am filling it from a database table and want to make my form look more professional. Is it possible?
Here is a sniplet of code to give you an idea of what I do... Maybe it will help...
Code:
===========================================================
<select size="1" name="Location">
<option><% response.write RSEmp("Location") %></option>
<option>---------------------------------------</option>
<%Do Until RSLocation.EOF%>
<option value="<% response.write RSVariable("Variable") %>"><% Response.Write RSVariable("Variable") %></option>
<%RSLocation.MoveNext
loop
%>
</select>
===========================================================
I use a dashed line across all my dropdown on a page that is longer then the data in dropdown... Let me know if you understand what I am doin here... Hope it helps...
Kind Regards,
Hakan
Very good, I understand, just never thought of it. Thanks.