CSS Basic Tutorial
CSS Flexbox
Flex items in CSS are the child elements of a flex container.
Specifies the order of the flex item within the container.
Try it yourself
Specifies how much the item will grow relative to other items, based on available space in the container.The value must be a number, default value is 0.
Try it yourself
Specifies how much the item will shrink relative to other items if there isn’t enough space in the container.The value must be a number, default value is 1.
Try it yourself
Defines the initial size of the flex item before space is distributed according to flex-grow
or flex-shrink
.
px
, %
, auto
, etc.auto
(size is based on content).Try it yourself
A shorthand for the three properties.flex-grow
,flex-shrink
,flex-basis
Try it yourself
Overrides the container's align-items
property for a specific item.
align-items : auto | flex-start | flex-end | center | baseline | stretch;
Try it yourself