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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select resizing

Status
Not open for further replies.

lswote

Programmer
Sep 2, 2003
1
US
I am replacing the text for the selectedIndex of an HTML form select tag and it is causing the select to resize, which I don't want. What can I do to keep it from resizing?
 
Set it's size using CSS.

<select name=&quot;select1&quot; size=&quot;4&quot; multiple style=&quot;width:50px&quot;>
<option>Some Really Long Text Won't Make This Go Wide</option>
</select>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top