On one of my pages, there is an input field that looks like this:
<input type="text" size="20" name="whatever" />
I would like to keep the size attribute for the input field instead of using CSS. Now, I want to add a select box to the same form with the same width as the input field:
<select name="whatever2">
<option>an option</option>
</select>
How can I make sure that the select box matches the width of the input field?
At first, I thought about using the 'size' attribute, but it's actually for displaying the number of options. Then I tried 'style="width:20em"', but it ended up being too much...