bungpeng Posted December 11, 2002 Posted December 11, 2002 I was created a simple login screen using ASP.NET, there is only 2 textbox, 1 username and 1 password. I Found that the length of these 2 textbox are not same, so it may look ugly in my login screen. Anyone face the same problem with me? I think it is cause by browser, not ASP.NET, because I try to create a simple HTML file and run directly without IIS, it still result the same. When I change to Netscape 7, 2 textbox (1 of them is type password) look nice - same size. Is it Microsoft mistake? as a web developer, what should I do? since most of the people use Internet Explorer nowadays... Quote
*Gurus* Derek Stone Posted December 11, 2002 *Gurus* Posted December 11, 2002 We'll need to see the code that creates the TextBoxes. Quote Posting Guidelines
*Experts* Volte Posted December 11, 2002 *Experts* Posted December 11, 2002 It seems to be that if you specifically specify the fonts of the textboxes, they will be the same size. Assuming you are using standard <input> tags, <input type="text" size="20" style="font: 10pt Courier New" name="user"><br> <input type="password" size="20" style="font: 10pt Courier New" name="password">That works for me. Quote
Moderators Robby Posted December 11, 2002 Moderators Posted December 11, 2002 Or you can create a couple of ASP Textboxes, using Styles as Volte pointed out. Quote Visit...Bassic Software
bungpeng Posted December 11, 2002 Author Posted December 11, 2002 My source is simple: <FORM method="post"> <INPUT type="text" name="txtName"><BR> <INPUT type="password" name="txtPassword"> </FORM> I did not use any CSS or other.... I am using WindowsXP and I found that the same thing run in Windows 2000 (with same browser IE6.0) is no problem. Anyone use WindowsXP and IE6? I was tried 2 PCs with this configuration and the problem are same.... So, are they anyone use WindowsXP and IE6 and did not face this problem? please help! Quote
Moderators Robby Posted December 11, 2002 Moderators Posted December 11, 2002 I don't understand why you don't want to use Style?? Simply copy/paste Volte's example it should make things more consistent. Quote Visit...Bassic Software
bungpeng Posted December 13, 2002 Author Posted December 13, 2002 Actually I did use Style in my development. I removed my Style because this problem occurs, my purpose is to find out what cause of this problem. Finally.... you can see, I only use this simple HTML and the problem still appear. And currently I guess the problem arise from WindowsXP and IE6.... So, Anyone got the same problem with me? Quote
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.