Style flexBasis Property
Style flexBasis Property
The flexBasis property is used to specify initial length of a flexible item. It will only work if items are flexible.
Syntax:-
Its syntax is:- object.style.flexBasis OR object.style.flexBasis = number|auto|initial|inherit
Return:-
Its return is:- string having flex-basis property of an element
Further Explanation:-
Value | Description |
---|---|
number | A length unit, or percentage, specifies the initial length of the flexible items. |
auto | The length is equal to the length of the flexible item. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |