Style resize Property
Example
Make a <div> element resizable:
document.getElementById("myDIV").style.resize = "both";
Try it Yourself »
Definition and Usage
The resize property specifies whether or not an element is resizable by the user.
Note: The resize property applies to elements whose computed overflow value is something other than "visible".
Browser Support
Property | |||||
---|---|---|---|---|---|
resize | Yes | 79.0 | Yes | Yes | 15.0 |
Syntax
Return the resize property:
object.style.resize
Set the resize property:
object.style.resize = "none|both|horizontal|vertical|initial|inherit"
Property Values
Value | Description |
---|---|
none | Default value. The user cannot resize the element |
both | The user can adjust both the height and the width of the element |
horizontal | The user can adjust the width of the element |
vertical | The user can adjust the height of the element |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Technical Details
Default Value: | none |
---|---|
Return Value: | A String, representing the resize property of an element |
CSS Version | CSS3 |
Related Pages
CSS reference: resize property
❮ Style Object