Click to See Complete Forum and Search --> : Can text wrap in a Select List.


JRoC
10-12-2005, 10:32 AM
Is there any way to make text wrap within a select list? I have a select list that I need to keep a certain width so it doesnt blow up the design. The content (selection in the list) are being generated from a database and can vary greatly in length. Currently the select list expands in width to accomidate the widest choice therfore blowing up my design.

Is there any way to have text wrap within the select list by specifing the select list can only be so wide (250px)? I tried it with CSS, no luck.

<select name="select" style="width:250; ">
<option>Sample 1</option>
<option>Sample 2</option>
<option>Sample 3</option>
<option>Sample 4</option>
<option>Sample 5</option>
<option>This is a really long Sample 6 to see if text can wrap in a list.</option>
<option>Sample 7</option>
<option>Sample 8</option>
</select>

Any help would be appreciated. Thanks...
JRoC

Fang
10-12-2005, 12:32 PM
No, you would have to fake a select list with div's

btw style="width:250px;