...

View Full Version : SELECT tag --- how can I make them the same width ?



vthoi
02-03-2005, 12:24 AM
Hi

Can you please help me to review following code ?

The two SELECT tag creates two windows/boxes. One is wider than the other because of its text.

How can I make them the same width ?

Thanks very much.

vthoi

-----------------------------------------------------------

<html>

<head></head>

<body>


<table border="0" cellpadding="0" width="900"
bordercolor="#000080">

<tr>
<td colspan="2" width="70%"><font size="4"><input
type="radio" name="reportname" value="Prescriber"
onclick="selectReport(4)"> </font><font size="2"><b>Prescriber</b>
</td>
<td align="left" width="10%"><p align="left"><font
color="#000000" size="2">P</font></p>
</td>
<td align="left" width="10%"><p align="left"><font
color="#000000" size="2">Rank</font></p>
</td>
<td>
<select name="sort_order1">
<option value="By Govt Price">By Govt Price
<option value="By Items Prescribed">By Items Prescribed
</select>
</td>
</tr>
<tr>
<td colspan="2" width="70%"><font size="4"><input
type="radio" name="reportname" value="Supplier"
onclick="selectReport(5)"> </font><font size="2"><b>Supplier</b>
</td>
<td align="left" width="10%"><p align="left"><font
color="#000000" size="2">P</font></p>
</td>
<td align="left" width="10%"><p align="left"><font
color="#000000" size="2">Rank</font></p>
</td>
<td>
<select name="sort_order2">
<option value="By Govt Price">By Govt Price
<option value="By Items Supplied">By Items Supplied
</select>
</td>
</tr>



</table>

</body>
</html>

_Aerospace_Eng_
02-03-2005, 12:29 AM
in the open select tag of the ones u want the same size add this

style="width:200px;"
adjust the size to ur liking

vthoi
02-03-2005, 12:41 AM
Hi _Aerospace_Eng_

It works.

Thanks very much for your help.

vthoi



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum