Jump to content

Textfields don't have the same width


freddykhalid

Recommended Posts

Hey guys, I am having a problem getting the textfields for both the Login and the Password Fields the same width. Using Firefox, I have no problem. But using IE, it can be clearly seen that the Password field is shorter than the Login field.

Here is my code:

[code]
<form action="index1.php" method="post">
  <table width="70%" cellpadding="1" cellspacing="0" border="0">
    <tr>
        <td>
        <table width="100%" height="100%" cellpadding="1" cellspacing="0" border="0" bgcolor="white">
        <tr><td align="center">
        <table width="78%" height="100%" cellpadding="1" cellspacing="0" border="0" bgcolor="white">
        <tr align="center"></tr>
        <tr>
            <td>Login ID</td><td>:</td><td align="left"><input type="text" name="login_id" maxlength="40"></td>
        </tr>
        <tr>
            <td class="label">Password</td><td>:</td><td class="label" align="left"><input type="password" name="pass" maxlength="40"></td>
        </tr>
        <tr><td><? if($_POST['submitForm'] == "Login") {echo "Login/Pwd Incorrect!";}?></td></tr><tr><td colspan="3" class="copyright"><div align="center">
          <input type="submit" name="submitForm"  value="Login" />&nbsp;&nbsp;&nbsp;&nbsp;
          <input name="reset" type="reset" value="Clear">
           &nbsp;</div></td>
        </tr>
        </table>
        </td>
        </tr>
        <tr><td>&nbsp;</td></tr>
        </table>
        </td>
    </tr>
</table>
</form>
[/code]
Link to comment
https://forums.phpfreaks.com/topic/8026-textfields-dont-have-the-same-width/
Share on other sites

[!--quoteo(post=367124:date=Apr 21 2006, 12:58 AM:name=freddykhalid)--][div class=\'quotetop\']QUOTE(freddykhalid @ Apr 21 2006, 12:58 AM) [snapback]367124[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Hey guys, I am having a problem getting the textfields for both the Login and the Password Fields the same width. Using Firefox, I have no problem. But using IE, it can be clearly seen that the Password field is shorter than the Login field.

Here is my code:


[/quote]

How about trying size= for both inputs.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.