/

HTML / CSS / JavaScript Tutorial

CSS Property: flex-basis

[this page | pdf | back links]

The CSS (CSS3) flex-basis property indicates the initial length of a flexible element. If an element is not a flexible element then this property has no effect.

 

Valid property values (other than inherit and initial) are:

 

Value

Description

number

A length unit or percentage specifying initial length of flexible item

auto

(default value). Length is equal to length of flexible item or if not specified is set according to context

 

Default Value:

auto

JavaScript syntax:

e.g. object.style.flexBasis="100px"

Inherited:

No

Animatable:

Yes

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile