<style> .textarea{ width:400px; min-height:20px; max-height:300px; _height:120px; margin: 0 auto; padding:3px; outline:0; border:1px solid #a0b3d6; font-size:12px; line-height:24px; word-wrap:break-word; overflow-x:hidden; overflow-y:auto; } </style>
<div class="textarea" contenteditable="true"></div>