I want to create a textarea in html that limits the amount of lines it can contains, for example, let’s say it can contain 6 lines. However, not just newlines (/r/n, after a user presses enter) but also when a newline is automatically started. For example, this paragraph contains 4 lines, but I haven’t pressed the enter key any time at all. How can I do this?
Share
No way to implement described behaviour while users can define their own fonts and scale pages in the web-browsers. Your question take 3 lines for me, for example.