html5 - How I can do vertically center alignment in TEXTAREA in HTML? -
i want vertically center alignment of text in text-area. please suggest how can this?
there 2 ways it
direct positioning textarea
<textarea style="height: 300px; width: 400px;; top:50%; margin-top: -150px; position: absolute;"> </textarea>use table property in element style
<div style=" display: table-cell; vertical-align: middle; height: 300px; width: 400px;"> <textarea style="height: 200px; width: 500px; display: table-cell;"></textarea> </div>
Comments
Post a Comment