views:

207

answers:

1

How to set <textarea> height auto? <textarea> should take height according to content inside <textarea> on same page I have multiple <textarea> with different amount of content inside.

I'm just using <textarea> to show source code sample.

+1  A: 

See following
http://stackoverflow.com/questions/454202/creating-a-textarea-with-auto-resize

Brij
no i'm not asking for this. i'm not asking for resizer
metal-gear-solid
Yes you are - you want the textarea to size to the content on page load? Well, you can't (without going in to fixed width fonts, etc) in pure xhtml so you'll need javascript, as per the above link.
adam