CSS Textarea that expands as you type text [duplicate]

I know this is a little bit late, but I have to say there is a way to use <div> with contenteditable attribute to simulate desired behaviour. .textareaElement { width: 300px; min-height: 17px; border: 1px solid #ccc; max-height: 150px; overflow-x: hidden; overflow-y: auto; } <div class=”textareaElement” contenteditable></div> Just set your min and max height, with … Read more

CSS Styling text areas like notebook-look

Here’s probably what you looking for: <style type=”text/css”> textarea { background: url(http://i.stack.imgur.com/ynxjD.png) repeat-y; width: 600px; height: 300px; font: normal 14px verdana; line-height: 25px; padding: 2px 10px; border: solid 1px #ddd; } </style> <textarea> Textarea with style example Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 Line n </textarea> Or … Read more