Looking to create a unique textbook design that starts out with specific width and height dimensions, but expands downward as users type beyond the initial space. Wondering if CSS can help achieve this functionality? In a standard textbox, only a scroll bar appears when users exceed the predefined rows. How can I make the textbox automatically expand by an additional 5 rows?
<form method="post" action="">
<textarea name="comments" cols="50" rows="5"></textarea><br>
<input type="submit" value="Submit" />
</form>
Interested in implementing the approach mentioned by Robert Harvey, but have limited experience with JavaScript. Any guidance on how to proceed?