description & Usage
To determine the initial length of a flexible element, we use the flex-basis property.
Informations
| # | Description |
|---|---|
| Default Value | auto |
| Inherited | no |
| Animatable | yes |
| Version | CSS3 |
| JavaScript syntax | object.style.flexBasis="200px" |
Browser compatibility and Support
| # | Chrome | Edge | Firefox | Safari | Opera |
|---|---|---|---|---|---|
| flex-basis |
Syntax
Values
| Values | Description |
|---|---|
| number | It uses numbers to determine the size of the length. |
| initial | Adds this value to its default property. |
| inherit | It inherits this value from its parent tag. |