HTML "textarea" tag
By default, you can resize a textarea input field by using drag and drop mechanism.
To disable the drag and drop facility, use the following CSS code snippet.
textarea {
resize: none;
}
The textarea tag contains two attributes namely, rows and cols.
Example:
<textarea rows="10" cols="20">Some text</textarea>
defines a textarea having 10 lines and 20 characters per line.
Comments
Post a Comment