Hi all,

I have a select drop down and one of its options has a very long text...

Is there a way to wrap the text?

  • Do you have any code? Is it a regular drop down or is it asp.net? tahdhaze09 over 9 years ago

2 answers

danwellman 5600

Not really, certainly not easily and cross-browser...

Your best option really is not to use a select box but to use something styled to look like a select box, but is actually a collection of more flexible elements (spans, or divs really)...You'd need JavaScript to make it work properly, and you'd have to make sure it behaved correctly (i.e. submitted some kind of value indicating the chosen option when the form is submitted).

Answered over 9 years ago by danwellman

Ideally, you would make it a standard select, then dynamically replace it with something awesomer via javascript/jQuery/et al. Check out some of these for ideas:

Answered over 9 years ago by Justin Hileman