"Thank you for helping keep Tek-Tips Forums free from inappropriate posts.Join your peers on the Internet's largest technical computer professional community. James Padolsey has a super nice jQuery script for auto resizing textareas (That’s gone off and on the internet, so here’s a backup.)
There is no limitation of this method. I love coming to this site because I am always learning something new.thanks for posting the article, picked up some tips i never realized before!Thanks Chris !!!
The
The default 1px solid bolder is replaced with a thicker beveled border. To restore the browser default, you can just force the border back to normal.That background image might interfere with the readability of the text once the text reaches that far. - Delivering standards compliant, accessible web solutions - Delivering standards compliant, accessible web solutions - Delivering standards compliant, accessible web solutions - Delivering standards compliant, accessible web solutions The tag is a inline tag for a reason!
You can remove it from the WebKit browsers like this:You could apply it to the :focus style as well, but it works either way. Create an invisible clone div 3. Cheers.Agreed, this is a great tip.
Greenhorn Posts: 3. posted 5 years ago. RE: resize textarea height to fit content BillyRayPreachersSon (Programmer) 12 Feb 10 11:23 Well... your first code snippet works perfectly for me in Fx 3.0.17 and IE 6. By default, and
I have a styled form in which I have a containing my textarea which has a width and height set. In fact, there isn’t any simple HTML or CSS way to make them do that.