Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Textarea text alignment

Tags:

html

textarea

In my HTML form, I have the following

Title: <textarea cols="50" id="title" name="title" rows="4"></textarea>

The result is that the word "Title:" lies at the same height as the bottom of the textarea. Can I make it lie at the middle?

like image 666
JJ Beck Avatar asked Nov 17 '25 12:11

JJ Beck


1 Answers

Set the vertical alignment to middle.

textarea {vertical-align:middle}​

DEMO

like image 70
Musa Avatar answered Nov 20 '25 02:11

Musa