Google Chrome placement alignment issue

In Google Chrome, when using placeholder in a text input with a height of 30 pixels, the text of the place owner is vertically aligned at the top

How can I make it sit in the vertical middle of text input?

+3
source share
2 answers

The current version of Chrome violates the alignment of the placeholder text because it is broken in the current WebKit. Unfortunately, you will not be able to do this using your own placeholders until it is fixed.


Update: According to the Chromium bug, the patch should be sent to Chrome 14.

+7
source

At the same time, you can use padding-top to bring the text down.

+2
source

Source: https://habr.com/ru/post/1796058/


All Articles