Flexible Box Layout
Chapter 11
Figures
- The two kinds of flex containers
- A simple tabbed navigation
- Power grid layout with Flexbox, with buttons aligned on the bottom
- 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
- Stacking of row-oriented flex lines
- Stacking of column-oriented flex lines
- Empty space will be in the direction of main-end and cross-end
- The values of the justify-content property
- The effects of
start
content justification
- The effects of
end
content justification
- The effects of
center
content justification
- The effects of
space-between
content justification
- The effects of
space-around
content justification
- The effects of
space-evenly
content justification
- Internationally-robust navigation alignment
- Changing the layout with one property value pair
- The values of the
align-items
property for both rows and columns
- Effect of margins on cross-axis alignment
- Baseline alignments
- Safe versus unsafe alignments
- Changing individual flex item alignments
- Distribution of extra space for each value of
align-content
- Flex-line overflow directions for each value of
align-content
- Gaps between rows of flex items
- Gaps between adjacent flex items along the inline axis
- Gaps and margins combine to open more space
- Percentage-based row gaps with and without explicit container heights
- Row and column gaps set using the gap shorthand property
- 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)
- Fit-content flex basis sizing
- Sizing flex items on a
content
basis, with and without growing
- Sizing flex items on a
max-content
basis, with and without growing
- Sizing flex items on a
min-content
basis, with and without growing
- 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