Drop Down Menu Max Lenght

liunx

Guest
Hi,<br />
How can you set the max lenght for a drop down menu. So if you have a name in there like _whatever_user_name it won't mess the thing by stretching the entire page. I tried many things and nothing worked, Im sure this is simple and you guys know what to do.<br />
Thank You,<br />
Paul<!--content-->there are some solutions that work better than others. I personally fill up my drop downs via database query. So I only put in the first 17characters and ... if there are more. <br />
<br />
I think that is the cleanest method, however you can set the width of a select box in pixels for a quick fix. <br />
<br />
<br />
<form><br />
<select style="width: 150px"><br />
<option>lkjl lkfj lakjfd lakjf lajf alkfj alkfj lakfj lajf lasjf lfj owiehty qoweiut ghldk</option><br />
<option>kldf jlajsflkaj flkajf lkajf lkasf j</option><br />
<option>lkdj lajf fj</option><br />
</select><br />
</form><!--content-->dispite of fixed width how to show the entire content within the option element on mouseover<!--content-->I don'tr believe you can.<!--content-->
 
Back
Top