I want to limit the width of menu items shown in a drop down. For instance,
In this demo link http://jsfiddle.net/B3uSD/1690/ , the width
of the select
box is 150px
. Yet, when i click the arrow, the menu items are displayed beyond 150 px
because of just one item "This is my very long string"
.
How can i limit the menu items to fit within 150 px?
Edit: Below is what is shown currently. Notice how the options box slip beyond the width of select box. "This is my very long string" is displayed fully but the options box expands beyond the drop down select box.
What I require is something like below
Notice that, although the text is truncated, the options box is still aligned with the combo box