Monday, July 20, 2015

How To Disable Text Area Resize

Resizable text areas are good as long as when you extend them, they don't "break" your page
visually. If you'd like to prevent a user resizing your text areas, include the following in your CSS:

textarea { resize: none; }

If you have an ID or a class for your textarea, write your selector using those for higher specificity: classname.textarea { resize: none; } or idname#textarea { resize: none; }

Post a Comment