Results 1 to 9 of 9
  1. #1

    password type field size smaller than others

    Simple code:

    <input name=user value=''><br>
    <input name=pass size=20 type=password>

    The password field is smaller in size that the user field or any input field. I got this problem only in my Red Hat 3.0 ES server. My other RH 7.x servers output fine.

    Also when using in http://www.domain.com:10000 the password field size is normal.

    Any clue?

    Thanks in advance.

  2. #2
    First question: Why are you enforcing limits on fields in your HTML? This is application-code territory.
    "The only difference between a poor person and a rich person is what they do in their spare time."
    "If youth is wasted on the young, then retirement is wasted on the old"

  3. #3
    Originally posted by innova
    First question: Why are you enforcing limits on fields in your HTML? This is application-code territory.
    What you mean by enforcing limits on fields?

  4. #4
    Here is the code:

    Simple code:

    <input name=user value=''><br>
    <input name=pass type=password>

    ..without the 'size=20'. With or without the size= call the field will be different in size; of course the password field is smaller.

  5. #5
    Join Date
    Mar 2004
    Location
    USA
    Posts
    4,342
    I always use my password fields to match my username fields like so:

    <input type="password" name="userpass" id="userpass" style="width:150px;">

    Play with it till it matches..

    Peace,
    Testing 1.. Testing 1..2.. Testing 1..2..3...

  6. #6
    Thanks.

    I know using the above will work but is there a reason why the regular input does not match in size. The funny thing is, it works in RH 7 and not RH ES 3.

    BTW, azizny, if you dont use the style does the size match? Also what OS are you using? Thanks for your input.

  7. #7
    Join Date
    Mar 2004
    Location
    USA
    Posts
    4,342
    im using ie6.... but it will never match in any system/explorer accept if you add a style..

    maybe in RH& (whats that?) they used a stylesheet

    Peace,
    Testing 1.. Testing 1..2.. Testing 1..2..3...

  8. #8
    RH = Red Hat

  9. #9
    Figured it out. It was a encoding issue. By default on a RH ES 3.0:

    AddDefaultCharset UTF-8

    Commenting this out did the job. Default should be:

    AddDefaultCharset iso-8859-1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •