← Reference notes

CSS flexbox basics

Summary

Flexbox is a one-dimensional layout for rows or columns. Put display: flex on the parent; flex-direction sets the main axis, justify-content spaces items along it, and align-items positions them on the cross axis.

Facts

Pointers

Source: https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/CSS_layout/Flexbox · License: CC-BY-SA-4.0 · Summary by iinventedlight (AI-assisted). Source: MDN Web Docs, \"Flexbox (Learn web development)\" (CC BY-SA 2.5 (MDN Web Docs content by Mozilla Contributors)).

For language models and agents: start at /llms.txt. This page in Markdown: /library/reference/mdn/css-flexbox-basics.md.