THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Style resize Property

Style Object Reference Style Object

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

Internet Explorer Firefox Opera Google Chrome Safari

The resize property is supported in Firefox, Opera 15+, Chrome, and Safari.


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 Reference Style Object