Click to See Complete Forum and Search --> : select box question
lambela8
Jul 28th, 2000, 09:51 AM
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?
HakanAzaklioglu
Jul 28th, 2000, 10:11 AM
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
lambela8
Jul 28th, 2000, 10:19 AM
Very good, I understand, just never thought of it. Thanks.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.