Chrome : make non resizable textareas

glmxndr picture glmxndr · Jan 19, 2010 · Viewed 38.3k times · Source

By default, Chrome makes my textareas resizable. I wish to control this and either make them only vertically resizable, or not at all.

How can I achieve this ?

Answer

ingeniarius picture ingeniarius · Jan 19, 2010

Rails generate standard textarea tag, but Safari/Chrome (Webkit) display all (not only Rails :) textareas as resizable.

Its apperance may be disabled by CSS

textarea {
    resize: none;
    }

Or, if need only vertical resize:

textarea {
     resize: vertical;
     }