iOS-Inspired-jQuery-Mobile-Theme icon indicating copy to clipboard operation
iOS-Inspired-jQuery-Mobile-Theme copied to clipboard

input placeholder displaced

Open juanca202 opened this issue 12 years ago • 1 comments

When I use the html5 attribute placeholder in a input field it show aligned top and is not very aesthetic, when I fill the input the text show centered, do you how why it happens??

juanca202 avatar Jul 04 '12 16:07 juanca202

Late response, but I had the same problem you had and you're the only other person I could find.

My problem was because I had a "line-height:100%" css attribute on my input box (ui-input-text).

If you have this, you may have to also do that for your placeholder css. I added the line-height attribute to my input::-webkit-input-placeholder css properties and it did the trick.

ohhamburgers avatar Sep 24 '12 22:09 ohhamburgers