CSS3 resize property
Example
Specify that a div element can be resized by the user:
ç
div
{
resize:
both
;
overflow:
auto
;
}
Try it »
Browser support
The numbers in the table indicate the first browser version that supports this property.
A number immediately before -webkit-, -ms-, or -moz- indicates the first browser version that supports that prefixed property.
| property | |||||
|---|---|---|---|---|---|
| resize | 4.0 | 79.0 | 5.0 | ||
| 4.0 -moz- | 4.0 | 15.0 |
Property definition and usage
The resize property specifies whether an element can be resized by the user.
**Note:** The resize property applies to elements whose computed overflow value is other than "visible".
| Default value: | none |
|---|---|
| Inherited: | no |
| Version: | CSS3 |
| JavaScript syntax: | object.style.resize="both" |
Syntax
resize: none|both|horizontal|vertical:
| Value | Description |
|---|---|
| none | The user cannot resize the element. |
| both | The user can resize the element's height and width. |
| horizontal | The user can resize the element's width. |
| vertical | The user can resize the element's height. |
Related Articles
CSS3 tutorial: CSS3 User Interface