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

size of a drop down

Status
Not open for further replies.

spookie

Programmer
May 30, 2001
655
IN
hi all,
how can i set the size(length) of a drop down select field?
thanks in advance

 
Normally, drop down boxes are set by the longest field in the box. I typically start my drop down box with a line of hyphens to set the length i.e., ---------------Select From the List Below-----------

You can set the length via this method quite easy. Hope this helped!
 
You can also set it using styles...

<select style=&quot;width: 300px;&quot;>
<option>Option 0</option>
<option>Option 1</option>
</select>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top