Jump to content

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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.