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

  1. direct positioning textarea

    <textarea style="height: 300px; width: 400px;; top:50%; margin-top: -150px; position: absolute;"> </textarea>

  2. 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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -