How do I vertically align placeholder text in textarea?

Instead of using padding-top which will increase the height of the textarea and extra space down use the line-height here is a sample, you can vary the line-height.

textarea::placeholder {
line-height: 90px;

}

you can also use transform property like this:

   textarea::placeholder {
transform: translateY(-20px);

}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)