Coding task · HTML and CSS course · Module 4: Flexbox

Wrapping Elements with flex-wrap

By default, flex items try to fit on a single line (flex-wrap: nowrap). Use flex-wrap: wrap to allow them to move to new rows when they don't fit. The wrap-reverse value wraps items in the opposite direction.

Task

Create a flex container with multiple elements of fixed width and use flex-wrap: wrap so that elements automatically wrap to new rows.