Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2005
    Location
    Canberra, Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry SELECT tag --- how can I make them the same width ?

    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>

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    in the open select tag of the ones u want the same size add this
    Code:
    style="width:200px;"
    adjust the size to ur liking

  • #3
    New to the CF scene
    Join Date
    Feb 2005
    Location
    Canberra, Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Hi _Aerospace_Eng_

    It works.

    Thanks very much for your help.

    vthoi


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •