Jump to content

text area height


freelance84

Recommended Posts

I've noticed on some web pages (eg Facebook), the size of text areas can start at 2 lines high but then as the user inputs more text the height can grow to accommodate the text.

 

How is this done?

 

<textarea style="max-height:50px;" name="additional_comment" cols="20" rows="1"></textarea>

 

I assumed it would be a simple max-height job but, no.

Link to comment
https://forums.phpfreaks.com/topic/201237-text-area-height/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.