+ Reply to Thread
Results 1 to 2 of 2

Thread: in IE input password is displayed shorter than input text

  1. #1
    manoogim is offline x10Hosting Member manoogim is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    11

    in IE input password is displayed shorter than input text

    using firefox, take a look at my login page here: http://mtmphp.x10hosting.com/auth/login.
    and notice two text boxes, one is type='input' and one is type='password'.
    now look at the same page using IE , you will see that the password field is shorter than the input field.
    don't know why is that , if you do right-mouse-click -> view page source you will see that in html they are both size=27:
    <input type="text" name="email" id="email" value="" size="27" maxlength="35" />
    <input type="password" name="password" id="password" value="" size="27" maxlength="15" />

    this is really bugging me, it is embarassing to show this page to the visitors b/c of how it looks. anyone seen similar problem ? anyone has ideas how to workaround the problem?

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: in IE input password is displayed shorter than input text

    Use CSS to set the width:

    HTML Code:
    <style type="text/css">
        input.twentywide { width: 20em ;  }
    </style>
    
    ...
    
    Email  <input type='text' class='twentywide' name='email'><br />
    Pass: <input type='password' class='twentywide' name='pass' ><br />
    Nothing is always absolutely so.

+ Reply to Thread

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. Replies: 1
    Last Post: 11-05-2007, 06:07 PM
  3. A simple Visual Basic Login Form
    By Zenax in forum Tutorials
    Replies: 0
    Last Post: 03-13-2007, 08:59 AM
  4. Customizing input text boxes
    By wizeman in forum Tutorials
    Replies: 0
    Last Post: 06-11-2005, 04:43 PM
  5. |PS|*Blur text Tutorial*
    By |Born2Shoot| in forum Tutorials
    Replies: 7
    Last Post: 06-04-2005, 10:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers