Меню
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON PHP КАК СДЕЛАТЬ
     ❯   

CSS Справочники


CSS Свойства





resize



Example

Here, the user can resize both the height and width of a <div> element:

div {
  resize: both;
  overflow: auto;
}
Try it Yourself »

Definition resize

Подработка: Перевод страницы

The resize property defines if (and how) an element is resizable by the user.

Note: The resize property does not apply to inline elements or to block elements where overflow="visible". So, make sure that overflow is set to "scroll", "auto", or "hidden".

Default value: none
Inherited: no
Animatable: no. Read about animatable
Version: CSS3
JavaScript syntax: object.style.resize="both" Try it

Browser Support resize

The numbers in the table specify the first browser version that fully supports the property.

Numbers followed by -moz- specify the first version that worked with a prefix.

Property
resize 4.0 79.0 5.0
4.0 -moz-
4.0 15.0


CSS Syntax resize

resize: none|both|horizontal|vertical|initial|inherit;

Property Values resize

Value Description Demo
none Default value. The user cannot resize the element Play it »
both The user can resize both the height and width of the element Play it »
horizontal The user can resize the width of the element Play it »
vertical The user can resize the height of the element Play it »
initial Sets this property to its default value. Read about initial Play it »
inherit Inherits this property from its parent element. Read about inherit

More Examples resize

Example

Let the user resize only the height of a <div> element:

div {
  resize: vertical;
  overflow: auto;
}
Try it Yourself »
Example

Let the user resize only the width of a <div> element:

div {
  resize: horizontal;
  overflow: auto;
}
Try it Yourself »
Example

In many browsers, <textarea> is resizable by default. Here, we have used the resize property to disable the resizability:

textarea {
  resize: none;
}
Try it Yourself »

Related Pages resize

CSS tutorial: CSS User Interface

HTML DOM reference: resize property



×

Связаться с отделом продаж

Если вы хотите использовать услуги schoolsw3 как образовательное учреждение, команда или предприятие, отправьте нам электронное письмо:
sales@schoolsw3.com

Сообщить об ошибке

Если вы хотите сообщить об ошибке или внести предложение, отправьте нам электронное письмо:
help@schoolsw3.com

Schoolsw3 оптимизирован для обучения и подготовки. Примеры могут быть упрощены для улучшения чтения и обучения. Учебники, ссылки и примеры постоянно проверяются, чтобы избежать ошибок, но мы не можем гарантировать полную правильность всего контента.
При использовании Schoolsw3 вы соглашаетесь прочитать и принять наши условия использования,
политику использования файлов cookie и конфиденциальности.

Авторское право 1999- © Copyright. Все права защищены. Schoolsw3 работает на SW3.CSS.