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

Multi-Row Layout with align-content

The align-content property only works when the flex container has multiple rows (requires flex-wrap: wrap). It controls the distribution of rows along the cross axis. It works similarly to justify-content, but for rows instead of individual items.

Task

Create a flex container with flex-wrap: wrap and multiple elements, then use align-content: center to vertically center the rows.