Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7972113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:46:54+00:00 2026-06-04T07:46:54+00:00

I am using following css in my form section. CSS .username input{ background-color: #FFFFFF;

  • 0

I am using following css in my form section.

Screenshot of form fields

CSS

.username input{
 background-color: #FFFFFF;
 border: 2px solid #DDDDDD;
 border-radius: 5px 5px 5px 5px;
 color: #9E9E9E;
 height: 30px;
 width: 330px;
 padding:0px 10px 0px 0px;
 padding-left:10px;
 margin:15px 0px 0px 0px;
 line-height:30px;
}

It works fine in all browsers. But in the Chrome, cursor displays in the same height of input tag. I found the solution, if I remove the line-height it displays as I want it to. But in IE, the values are in top of the field. I need the solution for this issue.

Please see the my fiddle. [It is not good in chrome]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:46:56+00:00Added an answer on June 4, 2026 at 7:46 am

    Remove line-height attribute from your css class, I think it will help you
    updated fiddle: http://jsfiddle.net/4Etyn/16/

    <div class="username">
        <input name="txtFullName" id="txtFullName" type="text" class="user" value="Username" onBlur="if(this.value=='') this.value='Username'" onFocus="if(this.value =='Username' ) this.value=''"  />
    </div>
    
    .username input{
        background-color: #FFFFFF; 
        border: 2px solid #DDDDDD;
        border-radius:5px;            
        color: #9E9E9E;
        height: 30px; 
        height: 22px\0/; 
        width: 330px; 
        padding:0px 10px 0px 10px; 
        padding:8px 10px 0px 10px\0/;  
        margin:15px 0px 0px 0px;
        vertical-align:middle;
    }
    :root .username input{
        height: 30px\9;
        padding:0px 10px 0px 10px\9;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the following css to create list items with a chckerboard background
I'm trying to accomplish the following using CSS: <table border=1 width=300px> <tr> <td rowspan=2>This
I using following code: var search = 'test'; if ($('#sku').find(search) ){ //alert(search); $(document).find(search).css('color','red'); <TABLE>
I have the following in an html form using method Post. <input type=submit title=
I am using the following for a check-box on a form: = f.input :post_linkedin,
Upon using the following CSS styling for my log in form, My POST variables
I have been using the following CSS to apply an effect at the bottom
I am using the following CSS to define a custom font on a webpage:
Im using the following JS <a href=# onClick=if($(this).next('div').css('display') == 'none') { $(this).next('div').show('fast'); } else
I'm trying to create css buttons by using the following html markup: <a href=access.php

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.