Maybe this is an easy question, maybe not. I have a select box where I hardcode with width. Say 120px.
<select style="width: 120px">
<option>REALLY LONG TEXT, REALLY LONG TEXT, REALLY LONG TEXT</option>
<option>ABC</option>
</select>
I want to be able to show the second option so that the user can see the full length of the text.
Like everything else. This works fine in Firefox, but doesn't work with Internet Explorer6.
I fixed it in my bootstrap page by setting the min-width and max-width to the same value in the select and then setting the select:focus to auto.
Okay, this option is pretty hackish but should work.
Which would offcourse require a hidden div.
ohh and you will need jQuery
you can try and solve using css only. by adding class to select
for more reference List Box Style in a particular item (option) HTML
Multi Select List Box
I fixed my problem with the following code:
Hope it helps!
Cheers, Cychan