Style flexShrink Property
Style flexShrink Property
The flexShrink property is used to specify how items will shrink relative to the rest of the flexible items inside the same container. It will only work if items are flexible.
Syntax:-
Its syntax is:- object.style.flexShrink OR object.style.flexShrink = number|initial|inherit
Return:-
Its return is:- string having flex-shrink property of an element
Further Explanation:-
Value | Description |
---|---|
number | A number specifying how much the item will shrink relative to the rest of the flexible items. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |