Link to home
Start Free TrialLog in
Avatar of detox1978
detox1978Flag for United Kingdom of Great Britain and Northern Ireland

asked on

HTML: Word Wrap <SELECT> <OPTION>

Hi All,


Is it possible to word wrap the selection options in HTML?

I want the use to choose between three sentenses, but they are pretty long, so would like to word wrap them.


Avatar of qwerty021600
qwerty021600
Flag of India image

You can define word wrap in css and call that class in Select option. It is possible.
Avatar of detox1978

ASKER

can you provide a sample as i can't get that to work
<!-- html -->
<select name="mySelect">
    <option class="optionWrap"> ...</option>
</select>

/* css */
.optionWrap
{
    width: 100px;
}

Set the width should do it.
I want to word wrap (put one option on several lines).

The code you present, doesn't do this.
You need to create a custom control for this. Either a Telerik control or through Ajax ToolKit.

Refer this:
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/
can you give a little more information?
ASKER CERTIFIED SOLUTION
Avatar of Chad Haney
Chad Haney
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I guess i could use CSS to make a combo looking box that does this.