Interactive online courses HTML Academy
2026-03-09 10:54 Diff

The align-items value affects the display of rows in the flex container if align-content is set to stretch. We tested this in the previous assignment.

Is there a similar effect on other align-content values? No.

We can verify this by way of the example of the center value, which centers rows in the middle of the cross axis so that:

  • there are no margins between adjacent rows (but the margins of the items themselves are preserved),
  • and the distance between the first row and the edge of the flex container is equal to the distance between the last row and the other edge.

Let’s experiment.