Answers for "textarea row height"

2

html textarea height

<!-- textarea rows attribute -->
<textarea id="txtid" name="txtname" rows="4" cols="50" maxlength="200">
A nice day is a nice day.
Lao Tseu
</textarea>
Posted by: Guest on April-05-2021
1

textarea only one line

textarea {
  resize: none;
  white-space: nowrap;
  overflow-x: scroll; /* or hidden */
}
Posted by: Guest on June-24-2020
1

make textarea auto height

function autoResize() {
	console.log('resizing');
	textInput.style.height = (textInput.scrollHeight) + 'px';
}
Posted by: Guest on September-05-2021
1

syntax is being placed in my textarea in html

<textarea name="comment" rows="5" cols="100"></textarea></br></br>
Posted by: Guest on November-24-2020

Browse Popular Code Answers by Language