align-content
Widely availableSince 201597% of users
Aligns content when there is extra space: a flex container's lines, a grid's tracks or, in newer browsers, a block's content. It's the cross-axis partner of justify-content.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassic, with newer partsIt has worked everywhere since September 2015, and it keeps getting newer values.
Newer parts of align-content
safeBaseline Jul 2024unsafeBaseline Jul 2024Supported in block layoutBaseline Apr 2024, Widely Oct 2026endBaseline Jul 2022, Widely Jan 2025startBaseline Jul 2022, Widely Jan 2025baselineBaseline Jan 2020, Widely Jul 2022first baselineBaseline Jan 2020, Widely Jul 2022space-aroundBaseline Jan 2020, Widely Jul 2022
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
normal- Inherited
- No
- Applies to
- block, multi-column, flex, and grid containers
- Animation type
- discrete
Quick example
.container {
display: flex;
flex-wrap: wrap;
height: 600px;
align-content: space-between;
/* distributes multiple rows throughout the height */
}Values
normalalign-content browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
29+
28+
9+
12+Mobile
29+Android
28+Android
9+iOS