chelvis
02-04-2003, 05:09 PM
I have a list box like follows:
<select name="combine" size="5" multiple>
<option value="1">Plastics</option>
<option value="2">Paper making</option>
<option value="3">Latexes!</option>
</select>
Here the list box takes the width of the longest string. Can I specify the width of a list box in the code some thing like this?
<select name="combine" width="20" size="5" multiple>
I tried didnt work. Is there any way? Because in my website, I have to initially have a blank list box. Then when a user check a check box, the text next to it will be placed in this list box. So initially when there is nothing, the list box would look so narrow and the user wouldnt even know what is it.
<select name="combine" size="5" multiple>
<option value="1">Plastics</option>
<option value="2">Paper making</option>
<option value="3">Latexes!</option>
</select>
Here the list box takes the width of the longest string. Can I specify the width of a list box in the code some thing like this?
<select name="combine" width="20" size="5" multiple>
I tried didnt work. Is there any way? Because in my website, I have to initially have a blank list box. Then when a user check a check box, the text next to it will be placed in this list box. So initially when there is nothing, the list box would look so narrow and the user wouldnt even know what is it.