...

View Full Version : Select List Width?



rfresh
10-19-2009, 07:26 PM
I'm using a select list and was wondering if there is anyway to control the width of the list? It seems that the list is as wide as the longest item in the list - is there any way to make the list a fixed width?

Thanks

stfc_boy
10-19-2009, 07:34 PM
<select style="width:400px">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>


Or instead of style, just create a class and make that class a width of SetNumber px.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum