Complete flexbox system with all .flex combinations for column and row directions.
Complete flexbox system with all .flex.y combinations
Comprehensive examples of .flex.y (column direction) with unique hyphenated selectors
Direction: .flex.y = flex-direction: column
Main axis (Y): start, center, end, space, around, evenly → justify-content
Cross axis (X): start, center, end, stretch, baseline → align-items
Pattern: .flex.y.[main-axis]-[cross-axis] (unique selectors)
Example: .flex.y.start-center → justify-content: flex-start + align-items: center
Content aligned to the top (main axis start)
align-items: center
align-items: flex-end
align-items: stretch
justify-content: flex-start (simple)
Basic flex direction column with common justify-content values
flex-direction: column (default)
justify-content: center
justify-content: flex-end
justify-content: space-between
justify-content: space-around
justify-content: space-evenly
Content centered vertically (main axis center)
align-items: flex-start
align-items: center
align-items: flex-end
align-items: stretch
Content aligned to the bottom (main axis end)
align-items: flex-start
align-items: center
align-items: flex-end
align-items: stretch
Content spaced between top and bottom (requires 2+ items)
align-items: flex-start
align-items: center
align-items: flex-end
align-items: stretch
Content with equal space around each item
align-items: flex-start
align-items: center
align-items: flex-end
align-items: stretch
Content with equal space everywhere (including edges)
align-items: flex-start
align-items: center
align-items: flex-end
align-items: stretch
Complete flexbox system with all .flex.x combinations (row direction)
Comprehensive examples of .flex.x (row direction) with unique hyphenated selectors
Direction: .flex.x = flex-direction: row
Main axis (X): start, center, end, space, around, evenly → justify-content
Cross axis (Y): start, center, end, stretch, baseline → align-items
Pattern: .flex.x.[main-axis]-[cross-axis] (unique selectors)
Example: .flex.x.start-center → justify-content: flex-start + align-items: center
Content aligned to the left (main axis start)
align-items: center
align-items: flex-end
align-items: stretch
justify-content: flex-start (simple)
Basic flex direction row with common justify-content values
flex-direction: row (default)
justify-content: center
justify-content: flex-end
justify-content: space-between
justify-content: space-around
justify-content: space-evenly
Shorthand for centering content both horizontally and vertically
justify-content: center + align-items: center
Content centered horizontally (main axis center)
align-items: flex-start
align-items: center
align-items: flex-end
align-items: stretch
Content aligned to the right (main axis end)
align-items: flex-start
align-items: center
align-items: flex-end
align-items: stretch
Content spaced between left and right (requires 2+ items)
align-items: flex-start
align-items: center
align-items: flex-end
align-items: stretch
Content with equal space around each item
align-items: flex-start
align-items: center
align-items: flex-end
align-items: stretch
Content with equal space everywhere (including edges)
align-items: flex-start
align-items: center
align-items: flex-end
align-items: stretch
Examples using flex-wrap: wrap and align-content for multiple lines
align-content: flex-start
align-content: center
align-content: flex-end
align-content: space-between
align-content: space-around
align-content: space-evenly
align-items: Aligns flex items along the cross axis (single line)
align-content: Aligns flex lines when there are multiple lines (requires flex-wrap)
Usage: Use .flex.x.wrap + .content-* for multi-line layouts
Complex layout mixing different .flex.x alignments and sizes
Gentle composition with centered elements
Simple geometric harmony