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!

How to control the WIDTH of a drop down menu 1

Status
Not open for further replies.

adknbvi

Programmer
Apr 17, 2001
25
US

Hello,
Is there a way to control the WIDTH of a drop-down menu so that it doesn't change every time you add new items to it or remove them? I would rather define a size and chop off an item than have the page keep dancing around.....

thanks, in advance,
Valerie
 
Just define the width using css.
<select style=&quot;width: 50px;&quot;>
<option>Option 0</option>
<option>Option 1</option>
</select>

This won't work in NN4 though...
 
Thank you! That worked perfectly! I had been trying to make it work with min-width instead of width! I guess I hadn't made it to the &quot;W&quot;s in my CSS reference yet. Thanks Again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top