Flex Box
Property | Description | Options | Result |
---|---|---|---|
display | Specifies the type of flex container for the flex items. | 1 2 3 | |
flex-direction | Defines the direction of the main axis. | 1 2 3 | |
flex-wrap | Determines whether the flex items are forced into a single line or can be wrapped onto multiple lines. | 1 2 3 4 5 | |
flex-flow | Shorthand property for setting both the flex-direction and flex-wrap properties. | ||
justify-content | Aligns flex items along the main axis. | ||
align-items | Aligns flex items along the cross axis. | ||
align-content | Aligns a flex containerĂs lines within when there is extra space in the cross-axis. | ||
order | Specifies the order of a flex item relative to the other flex items within the same container. | ||
flex-grow | Determines how much a flex item will grow relative to the rest of the flex items inside the same container. | ||
flex-shrink | Specifies the ability of a flex item to shrink if necessary. | ||
flex-basis | Defines the initial size of a flex item along the main axis before any available space is distributed. | ||
flex | Shorthand property for setting the flex-grow, flex-shrink, and flex-basis properties. | ||
align-self | Allows the default alignment to be overridden for individual flex items. |