Here is what I got:
<select id="box1">
<option>ABCDEFG</option>
</select>
<select id="box2">
<option>ABCDEFGHIJKLMNO</option>
</select>
I have two different drop down lists. Since the width of the drop-down list depends on the width of the longest text in the option, I end up with two drop-down lists with two different widths. It makes my webpage dumb.
I want to set it so that both of my dropdowns have the same width (I would prefer the width to be very long so that even the longest element will not be truncated).
source
share