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 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS flex basis Property

CSS flex-basis Property



The flex-basis property is used to specify the initial length of a flexible item. It is only usable if the element is flexible.


Default Value:-


Its default value is auto.




Its syntax is:- flex-basis: number | auto | initial | inherit;


Further Explanation:-


Value Description
number A length unit, or percentage, specifies the initial length of the flexible item.
auto The length is equal to the length of the flexible item.
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