Align content

noun

say it: “uh-LYN KON-tent” /əˈlaɪn ˈkɑntɛnt/

The CSS property that spaces out the lines of a wrapping flex container, or the rows of a grid, when there is spare room across them.

What does align-content do?

align-content spaces out the lines of a wrapping flex (or grid) container, when there is extra room across them.

.tag-cloud { display: flex; flex-wrap: wrap; height: 300px; align-content: flex-start; }

In a sentence

  • “The tags wrapped onto three lines, and align-content: flex-start kept those lines packed at the top of the box.”

Level: Journeyman · More CSS terms at this level

Updated