Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drop down menu

Status
Not open for further replies.

mary555

Programmer
Nov 9, 2005
185
CA
is there a way to get a drop down menu to stay a certain size. i know you can assign it a certain size or width but its not working. when there is a large value in it, it will widen to however long the value is...
 
sorry that didn't work....this is my code:

<select name="Cause" width="50px" overflow:hidden;" id="Cause" onchange="frmL.submit()" tabindex="26">
<option value=""></option>
<% DO WHILE NOT CauseRS.EOF %>

<option value='<%= CauseRS("Cause")%>' <%if CauseRS("Cause")=ValComboCause then %> selected <%end if %> >
<%=CauseRS("Cause") %>
<%
CauseRS.MoveNext
Loop
CauseRS.Close
Set CauseRS=Nothing
%>
</select>
 
ok it works!

<table border = "1" width="752px" height="260px" style="table-layout:fixed;">



I had the width set too big
 
Also, doing it the way Dan showed (with the style attribute and values inside that) would've worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top