gondolin7
09-28-2007, 03:30 AM
Hii,
Is there a way to set a default width for a select element in HtML? In order to accomplish this I wrote the following code:
<select style="width: 200px">
<option>one</option>
<option>two</option>
<option>three</option>
</select>
This works but what I want to happen is for it to resize once it already has a longer option width like say: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Is there a way to set a default width for a select element in HtML? In order to accomplish this I wrote the following code:
<select style="width: 200px">
<option>one</option>
<option>two</option>
<option>three</option>
</select>
This works but what I want to happen is for it to resize once it already has a longer option width like say: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'