June 1, 2011

<textarea> box to increase height (wrap) when the current text overflows the given width?

Question by nubela

Is there a css (non-js) solution to have my box to increase height (wrap) when the current text overflows the given width?

Thanks!

Answer by Starx

Given that you want to increase text area in its height. It is possible at CSS3 supporting browsers like FF4. You can also control the direction of which it can be resized.

Another of the CSS3 solution can be using contenteditable element, instead of textarea, which will make how you want possible without using any javascript?

I might show you some examples if this is what you want.

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!