textarea - disable resize on x or y?

SaturnsEye picture SaturnsEye · Aug 29, 2014 · Viewed 64.9k times · Source

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

Answer

Grim... picture Grim... · Aug 29, 2014
resize: vertical;

or

resize: horizontal;

Quick fiddle: http://jsfiddle.net/LLrh7Lte/