Skip to content
Guest
← All References
CSS Baseline Widely Available

Flexbox Cheat Sheet

Quick lookup for CSS Flexbox container and item properties.

display: flex; justify-content: ...; align-items: ...; gap: ...;
PropertyValuesEffect
flex-directionrow | columnSets the main axis direction
justify-contentflex-start | center | space-between | space-evenlyDistributes items along the main axis
align-itemsstretch | center | flex-start | baselineAligns items along the cross axis
flex-wrapnowrap | wrapAllows items to wrap onto multiple lines
gap<length>Space between flex items

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind