How to change HTML select width
To change the select width, simply change the width
with CSS (you can do this inside your HTML code, for example, as an inline style).
If this method doesn’t work, consider adding !important
at the end of the value (e.g. 50%!important
).
Example:
<select style="width: 50%">
<option>Test option</option>
</select>
Output: