detox1978
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.
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.
You can define word wrap in css and call that class in Select option. It is possible.
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.
<select name="mySelect">
<option class="optionWrap"> ...</option>
</select>
/* css */
.optionWrap
{
width: 100px;
}
Set the width should do it.
ASKER
I want to word wrap (put one option on several lines).
The code you present, doesn't do this.
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/
Refer this:
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/
ASKER
can you give a little more information?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I guess i could use CSS to make a combo looking box that does this.