Visually explore CSS Flexbox properties with a live preview. Adjust container and item properties, then copy the generated CSS.
Flexbox (Flexible Box Layout) is a CSS layout model designed for building responsive, dynamic layouts. It distributes space among items in a container, even when their sizes are unknown.
Use Flexbox for one-dimensional layouts (a row or a column of items). Use CSS Grid for two-dimensional layouts (rows AND columns). Flexbox is great for navbars, card rows, and centering. Grid is better for page layouts and complex grids.
flex: 1 is shorthand for flex-grow: 1; flex-shrink: 1; flex-basis: 0%. It means the item will grow to fill available space equally with other flex: 1 items.