Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The placeholder text in my text boxes is mis aligned in chrome

I've got a problem in Google chrome where the placeholder text sits too high on my website http://www.myinvestmentdecision.com.au

Click "Feedback" and you'll see the text in the placeholder sits to high. I've got a placeholder script, but it turns off when it realises that chrome has support for placeholder.

Just to proove that point here's a jsfiddle of the form itself: http://jsfiddle.net/RAANa/

Must be a CSS thing. Any ideas?

like image 394
Jason Avatar asked Jan 20 '23 07:01

Jason


1 Answers

Remove line-height:28px from your css below.

.form input[type="text"], .form input.text, .form .calculate_box .calc {
background: transparent url(../images/input-background.png) repeat-x left top;
border: 1px solid #A1A1A1;
margin-left: -1px;
height: 28px;
line-height: 28px;
display: block;
width: 284px;
}

See attached screenshot with line-height removed
enter image description here

like image 135
Hussein Avatar answered Jan 31 '23 20:01

Hussein