textarea - disable resize on x or y?
CssResizeTextareaCss Problem Overview
I know it's possible to disable the resize of a textarea
by using:
textarea {
resize: none;
}
But is it possible to disable either x or y? instead of both
Css Solutions
Solution 1 - Css
Solution 2 - Css
Sure it is possible with css and jquery
CSS:
resize: vertical;
resize: horizontal;
jQuery
$('textarea').css("resize", "vertical");
$('textarea').css("resize", "horizontal");
Bootstrap just put the class in Textarea
for the vertical resize: vresize
for the horizontal resize: hresize
Solution 3 - Css
You must use horizontal or vertical values for property.
resize: vertical;
or
resize: horizontal;