|
-
Jul 28th, 2000, 09:51 AM
#1
Thread Starter
Member
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?
-
Jul 28th, 2000, 10:11 AM
#2
Member
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
-
Jul 28th, 2000, 10:19 AM
#3
Thread Starter
Member
Very good, I understand, just never thought of it. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|