Q:

How to disable resizable property of text area using CSS

0

How to disable resizable property of text area using CSS

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Use the CSS3 resize property

You can use the CSS3 resize property to remove or turn-off the default horizontal and vertical resizable property of the HTML <textarea> element. This property will also hide the resizing handle at the bottom-right corner of the textarea. Let's check out an example:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Remove textarea resizing with CSS</title>
<style>
	textarea.wt-resize {
		resize: none;
	}
</style>
</head>
<body>
    <form>
    	<h2>Normal Textarea</h2>
        <textarea rows="5" cols="50"></textarea>
        <h2>Textarea without resizable property</h2>
    	<textarea rows="5" cols="50" class="wt-resize"></textarea>
    </form>
</body>
</html>

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

HTML / CSS Frequently Asked Questions

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
How to expand select box to its default width on f... >>
<< How to make a div element editable in HTML...