resize

Sets whether an element is resizable by the user, and if so, in which directions. Note that this only works on elements where overflow is not 'visible'.

It is documented as part of the CSS Basic User Interface specification.

/* Usage Example */
textarea.standard-input {
  resize: vertical;
  /* allows users to expand the box downwards only */
}
.resizable-panel{
  overflow: auto;
  resize: both;
  /* user can resize the panel in both directions */
}

/* Syntax */
resize: none;
resize: both;
resize: horizontal;
resize: vertical;
resize: block;
resize: inline;

/* Global values */
resize: inherit;
resize: initial;
resize: revert;
resize: revert-layer;
resize: unset;
Limited availability Since 2020 84% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

1+
4+
3+
79+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC