Easy Tutorial
❮ Met Console Timeend Met Cssstyle Getpropertyvalue ❯

flexBasis Property

Style Object

Example

Set the initial length of a flexible item to 200 pixels:


Definition and Usage

The flexBasis property specifies the initial length of a flexible item.

Note: If the element is not a flexible item, the flexBasis property has no effect.


Browser Support

Firefox, Opera, and Chrome support the flexBasis property.


Syntax

Return the flexBasis property:

Set the flexBasis property:

Property Values

Value Description
number A length unit or a percentage, specifying the initial length of the flexible item.
auto Default value. The length is equal to the length of the flexible item. If the item has no specified length, the length is determined by the content.
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default value: auto
Return value: String, representing the flex-basis property of the element.
--- ---
CSS version CSS3
--- ---

Related Articles

CSS Reference: flex-basis Property

HTML DOM STYLE Reference: flex Property

HTML DOM STYLE Reference: flexDirection Property

HTML DOM STYLE Reference: flexFlow Property

HTML DOM STYLE Reference: flexGrow Property

HTML DOM STYLE Reference: flexShrink Property

HTML DOM STYLE Reference: flexWrap Property


Style Object

❮ Met Console Timeend Met Cssstyle Getpropertyvalue ❯