freddykhalid Posted April 21, 2006 Share Posted April 21, 2006 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" /> <input name="reset" type="reset" value="Clear"> </div></td> </tr> </table> </td> </tr> <tr><td> </td></tr> </table> </td> </tr></table></form>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/8026-textfields-dont-have-the-same-width/ Share on other sites More sharing options...
gizmola Posted April 21, 2006 Share Posted April 21, 2006 [!--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. Quote Link to comment https://forums.phpfreaks.com/topic/8026-textfields-dont-have-the-same-width/#findComment-29267 Share on other sites More sharing options...
freddykhalid Posted April 23, 2006 Author Share Posted April 23, 2006 When I try size, Mozilla Firefox shows both textfields wth differrent sizes while IE shows them as close as possible but not exact.Looks like a compromise situation etween IE and Mozilla! Quote Link to comment https://forums.phpfreaks.com/topic/8026-textfields-dont-have-the-same-width/#findComment-29789 Share on other sites More sharing options...
knokkel Posted April 23, 2006 Share Posted April 23, 2006 try style="width:100px;" in the input tag... Quote Link to comment https://forums.phpfreaks.com/topic/8026-textfields-dont-have-the-same-width/#findComment-29794 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.