Example

A simple flex-shrink property example:

Laboratory

description & Usage

In order to make only one item flexible among other items, we use the flex-shrink property.

Informations

# Description
Default Value 1
Inherited no
Animatable yes
Version CSS3
JavaScript syntax object.style.flexShrink="5"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
object.style.flexShrink="5"

Syntax

Values

Values Description
number Determines a number that can be used to determine the flexibility of that element.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.