Madge2
February 23rd, 2007, 09:01 PM
Hi
I am creating a very simple website which includes order forms. They in turn include drop-down controls for selecting from various colourway options like this:
First item:
<input type="hidden" name="id" value="1234" />
<select name="item">
<option value="choose colour" />choose colour
<option value="white" />white
<option value="ivory" />ivory
</select>
Second item:
<input type="hidden" name="id" value="5678" />
<select name="item">
<option value="choose colour" />choose colour
<option value="white" />white
<option value="aubergine" />aubergine
</select>
It all functions fine but the boxes shrink or expand horizontally according to the length of the option values so the second box which includes the longer word "aubergine" would be wider than the first box. This is making my page look rather untidy. It is only a cosmetic issue, but I would like to insert code which maintains the width of the controls to whatever will be the widest needed. I have looked in many reference books and can find nothing. Surely this is possible?
I am creating a very simple website which includes order forms. They in turn include drop-down controls for selecting from various colourway options like this:
First item:
<input type="hidden" name="id" value="1234" />
<select name="item">
<option value="choose colour" />choose colour
<option value="white" />white
<option value="ivory" />ivory
</select>
Second item:
<input type="hidden" name="id" value="5678" />
<select name="item">
<option value="choose colour" />choose colour
<option value="white" />white
<option value="aubergine" />aubergine
</select>
It all functions fine but the boxes shrink or expand horizontally according to the length of the option values so the second box which includes the longer word "aubergine" would be wider than the first box. This is making my page look rather untidy. It is only a cosmetic issue, but I would like to insert code which maintains the width of the controls to whatever will be the widest needed. I have looked in many reference books and can find nothing. Surely this is possible?