CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS flex shrink Property

CSS flex-shrink Property

 

 

The flex-shrink property is used to specify how the item will shrink relative to the rest of the flexible items inside the same container. It is only usable if the item is flexible.

 

Default Value:-

 

Its default value is 1.

 

Syntax:-

 

Its syntax is:- flex-shrink: number | initial | inherit;

 

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.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS