textarea css rows code example
Example 1: textarea only one line
textarea {
resize: none;
white-space: nowrap;
overflow-x: scroll; /* or hidden */
}
Example 2: textarea rows cols
<textarea rows="4" cols="50">
textarea {
resize: none;
white-space: nowrap;
overflow-x: scroll; /* or hidden */
}
<textarea rows="4" cols="50">