Why does this textarea have more than 10 rows even though only 10 were assigned.
Hi there @Stribor45 the codepen you posted is empty unfortunately.
If you actually post the code I’m sure someone will be able to help you.
Cheers
Sorry my bad
Assigned 4 rows yet I have 5 rows and can keep going…
By default textareas are resizible in modern browsers.
https://developer.mozilla.org/en-US/docs/Web/CSS/resize
So the rows/cols numbers becomes the current size.
Meaning as per my example I should have min 4 rows(no less than 4)?
Sorry, I didn’t mean min-size, more like the loading size. Please see the Mozilla Dev link.
Was just editing the wording.
Thank you
I see four rows not five.
rows
The number of visible text lines for the control.
I think you may be confusing “visible” with “possible”
maxlength HTML5
The maximum number of characters (Unicode code points) that the user can enter. If this value isn’t specified, the user can enter an unlimited number of characters.
AFAIK, there is no such thing as a “maxrows”. If your intent is to prevent a novella from being submitted, a sane maxlength should do it as far as for the client side UI. You will probably still want to have something server side to ensure the limit is enforced.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.