Results 1 to 3 of 3

Thread: Textbox with type "Password" is not the same height?

  1. #1
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Textbox with type "Password" is not the same height?

    I am using CSS to define a textbox style.

    Here's the code:
    Code:
    .loginbox {
     font-size: 14px;
     height: 18px;
     background-color: #CCC;
     border: 1px solid #000;
    }
    I am using two of them next to each other - one for username and one for password. The password one has the type set to "password". it is shorter in height than the one set to "text". If I change it's type to text then it becomes the same size. Is there any way around this?

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    That should work in the way that you want. Not sure why it isn't for you.

    Do you have a sample page showing the problem?

    You might want to add a seperate class for the password field and see if that helps.
    Code:
    input.loginbox[type='password']

  3. #3
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Heres a sample test page - look at the top login bar:

    www.zreloaded.com

Bookmarks

Posting Permissions

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