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!

Fixed size on HTML menu list ?

Status
Not open for further replies.

stax

Technical User
Sep 25, 2002
81
US
Hi,

Can i fix the size of my drop down menu? if it were an input text field I could add size=21 to it but is it possible to do it with a drop down menu?

<FORM NAME="nav">
<SELECT NAME="SelectURL" onChange="document.location.href=document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value">
<OPTION VALUE=" Product ...
</SELECT>
</FORM>

Can anyone help me edit my code to fix the size?

Thanks
S
 
Hi

Code:
<form name="nav">
<select name="SelectURL" [red]style="width:21em"[/red] onchange="document.location.href=document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value">
<option value="[URL unfurl="true"]http://www.mydomain.com/index.html"[/URL] selected="selected">Select Product ...
</select>
</form>

Feherke.
 
Great! really apprieciated, i would never of worked that out!
S
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top