Middle (vertically) align text inside a <textarea>

前端 未结 4 1353
不知归路
不知归路 2021-01-07 19:31

It\'s a multiline search-box, so i want everything aligned in the middle. Is it possible?

4条回答
  •  渐次进展
    2021-01-07 20:04

    You might be able to make a script that determines the elements height, line height, and lines of text and calculate a padding-top, or even \n to prepend the text.

    I do not think this is possible with just CSS though.

提交回复
热议问题