{"id":14099,"date":"2011-09-06T12:04:48","date_gmt":"2011-09-06T19:04:48","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=14099"},"modified":"2019-01-31T07:29:30","modified_gmt":"2019-01-31T14:29:30","slug":"resize","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/r\/resize\/","title":{"rendered":"resize"},"content":{"rendered":"
The Super important to know:<\/strong> It’s also worth knowing that Firefox will let you resize an element smaller than its original size. Webkit browsers will not let you resize an element to make it smaller, only larger (in both dimensions).<\/p>\n When an element is resizeable, it has a little UI handle on a lower corner. The handle appears on the right on page elements when the page’s The resizeable element in this demo is a paragraph. Click the buttons to try out the different See the Pen Resize Demo<\/a> by CSS-Tricks (@css-tricks<\/a>) on CodePen<\/a>.<\/p>\nresize<\/code> property controls if and how an element can be resized by the user by clicking and dragging the bottom right corner of the element. <\/p>\n
.module {\r\n resize: both;\r\n}<\/code><\/pre>\n
resize<\/code> does nothing unless the
overflow<\/code> property<\/a> is set to something other than
visible<\/code>, which is its initial value for most elements.<\/p>\n
Values<\/h3>\n
\n
none<\/code>: the element is not resizeable. This is the initial value for most elements. The
textarea<\/code> element is the most common exception—in many browsers its default
resize<\/code> value is
both<\/code>.<\/li>\n
both<\/code>: the user can resize the element’s height and\/or width.<\/li>\n
horizontal<\/code>: the user can resize the element horizontally (increasing the width).<\/li>\n
vertical<\/code>: the user can resize the element vertically (increasing the height).<\/li>\n
inherit<\/code>: the element inherits the resize value of its parent.<\/li>\n<\/ul>\n
direction<\/code> is set to
ltr<\/code> (left-to-right), and on the left on
rtl<\/code> (right-to-left) pages.<\/p>\n
Demo<\/h3>\n
resize<\/code> values.<\/p>\n
Related<\/h3>\n