Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lock the width of a textbox

Is it possible to lock the width of a textbox so that the users can't increase the width of it? (right now they can increase it, but not decrease it, because of the style="width: 717px;").

Something like:

<form>
<textarea maxwidth="717" />
</form>
like image 229
ZyteX Avatar asked Nov 20 '11 22:11

ZyteX


1 Answers

You are looking for the resize css rule:

textarea {
    resize:none;
}

You can also set it to vertical or horizontal resize only.

like image 106
uɥƃnɐʌuop Avatar answered Nov 15 '22 18:11

uɥƃnɐʌuop