HTML
<select id="food">
<option>Pick Favorite Food</option>
<option>Banana</option>
<option>Orange</option>
</select>
<select id="place" style="width: 100px;">
<option>Pick Favorite Place</option>
<option>Disneyland</option>
<option>Hawaii</option>
</select>
JavaScript
$('food').getStyle('width'); //56px
$('place').getStyle('width'); //100px
If no width is specified, the browser sizes the input to fit all of the text dynamically. Obviously this has to happen so you can see your elements.
Is there a way to test if the element was styled manually? Either inline, through a stylesheet, or even through JavaScript?
$('food').getWidth(); //false
$('place').getWidth(); //100px