solvit.io

Prevent the user from changing the height or width of a textarea

Solution
/* textareas can only change their height */
textarea {
    resize: vertical;
}

/* textareas can only change their width */
textarea {
    resize: horizontal;
}

/* textareas can't change neither their height nor their width */
textarea {
    resize: none;
}
Find more solutions about: , , ,