Flexbox is a one-dimensional CSS layout model for arranging items in a row or column. Set justify-content to distribute items along the main axis, align-items to control cross-axis alignment, and flex-wrap to allow items to wrap onto new lines. Individual items can use flex-grow, flex-shrink and flex-basis to control how they resize relative to their siblings.