Flexible Box Layout
Chapter 12
Figures
- The two kinds of flex containers
- A simple tabbed navigation
- Power grid layout with Flexbox, with buttons aligned on the bottom
- Gallery with columns neatly lined up using Flexbox
- Widget with several components, all vertically centered
- The four values of the
flex-direction
property
- Changing the flex direction can completely change the layout
- Home page layout using
flex-direction
: row and column
- The four values of the
flex-direction
property when writing direction is right to left
- The four values of
flex-direction
property when writing mode is horizontal-tb
- The three values of the
flex-wrap
property in a row-oriented flow
- A row-oriented unwrapped flex flow
- Axis dimensions and directions
- Stacking of row-oriented flex lines
- Stacking of column-oriented flex lines
- The three values of
flex-wrap
property in a column-oriented flow
- Empty space will be in the direction of main-end and cross-end
- The six values of the
justify-content
property
- Overflow of a single-line flex container is affected by
justify-content
- Flex-start alignment
- Flex-end alignment
- Center alignment
- Space-between alignment
- Space-around alignment
- Space-evenly alignment
- Comparing center, space-around, space-between, and space-evenly
- Internationally-robust navigation alignment
- Changing the layout with one property value pair
- The five values of the align-items property for both rows and columns
- Stretch alignment
- Effect of cross-axis margins on item alignment
- Flex-start, flex-end, and center alignment
- Baseline alignment
- Changing flex item alignments
- Distribution of extra space for each value of
align-content
- Flex-line overflow directions for each value of
align-content
- Distribution of free space for
space-between
, space-around
, and space-evenly
- Flex items within a container
- Five flex items in an aside
- Flex container overflow with minimum-width flex items
- Zero-minimum-width flex items in non-wrapped and wrapped flex containers
- A variety of flex-growth scenarios
- Mixed widths and growth factors
- Flex sizing when using the
flex
shorthand
- Flex sizing differences between using
flex
and flex-grow
- A variety of flex shrinking scenarios
- Shrinking being impeded by flex item content
- Flex items shrink proportionally relative to their shrink factor
- Flex items shrink proportionally relative to their shrink factor and content
- A wide flexbox layout (make the browser window wide)
- A narrow flexbox layout (make the browser window narrow)
- Sizing flex items on a
content
basis
- Auto flex basis and flex item widths
- Default sizing of flex items
- Sizing flex items with length-unit flex bases
- Sizing flex items with percentage flex bases
- While the percentage value for flex-basis is relative to the width of the flex container, the main-axis size is impacted by its siblings
- Flex growth in auto and zero flex bases
- Flex items shrink but won't grow when
flex: initial
is set
- Flex items can grow and shrink when
flex: auto
is set
- With flex: none, flex items will neither grow nor shrink
- Flexing using a single numeric value
- Reordering flex items with the
order
property
- Flex items appear in order of ordinal groups, by source order within their group
- Changing the order will change the visual order, but not the tab order