Results 1 to 3 of 3

Thread: select box question

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    48
    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?

  2. #2
    Member
    Join Date
    Jan 2000
    Posts
    63
    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

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    48
    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
  •  



Click Here to Expand Forum to Full Width