DevMetrix
.
cloud
Home
Tools
Blog
Examples
System Designer
Cheat Sheets
Comparisons
Projects
About
Advertisement
← All Cheat Sheets
CSS Flexbox Cheat Sheet
Most used Flexbox properties for layout
Container
display: flex
Enable flexbox context
Copy
flex-direction: row | column
Main axis direction
Copy
flex-wrap: wrap
Allow wrap
Copy
justify-content: center
Main axis alignment
Copy
align-items: center
Cross axis alignment
Copy
Item
order: 2
Display order
Copy
flex-grow: 1
Item grows relative
Copy
flex-shrink: 1
Item can shrink
Copy
align-self: flex-end
Override alignment
Copy
Advertisement