#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Posts
    409
    Rep Power
    13

    Question How do I get a CSS formatted password box the same length as a text box?


    Here's how I setup these two input boxes on the form:

    PHP Code:

    Email
    <input type="text" size="20" name="username" style="font-size: 10px;">
    Password
    <input type="password" size="25" name="password" style="font-size: 10px;"
    I added the extra 5 to the password field, and this evens it out on IE. But now on Netscape 6, the password field is longer!

    Any ideas?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Seattle WA
    Posts
    863
    Rep Power
    14
    Nix the size=X field, and specify it in the style attribute:
    PHP Code:
    <INPUT type="text" name="username" style="font-size: 10px; width: 75px;"
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Posts
    409
    Rep Power
    13

    Thumbs up


    Excellent work, MJEggertson.

    Works like a charm.

    Thank you so much for taking time out to help!

IMN logo majestic logo threadwatch logo seochat tools logo