Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

input placeholder line-height issue

enter image description here

What is the issue?

There is a input box with height 36px as show in above image. In IE10 placeholder is not vertically middle.

like image 424
Tushar Avatar asked Dec 16 '13 12:12

Tushar


2 Answers

For all inputs just give

line-height:normal;

it will take normal line-height and will work fine in all browsers.

like image 194
Amin charoliya Avatar answered Sep 21 '22 20:09

Amin charoliya


I usually set a height and line-height to the input[type=text] and inherit these properties to ::placeholder.

height: inherit;
line-height: inherit;
like image 20
Garou Avatar answered Sep 23 '22 20:09

Garou