Browse documentation
Reference / Flexbox & grid
Align content
Distribute a set of grid rows or wrapped flex lines along the cross axis when their container has extra height.
Working example
Morning shift
Doors open at nine.
Content-between separates rows as a group. Use items-center to align the boxes within a single row.
<div class="grid h-28 content-between border p-2">
<h3 class="font-semibold">Morning shift</h3>
<p>Doors open at nine.</p>
</div>Class reference
| Class | CSS declarations |
|---|---|
content-start | align-content: flex-start; |
content-center | align-content: center; |
content-end | align-content: flex-end; |
content-between | align-content: space-between; |
content-around | align-content: space-around; |
content-evenly | align-content: space-evenly; |
content-stretch | align-content: stretch; |
View full generated CSS
.content-around {
align-content: space-around;
}
.content-between {
align-content: space-between;
}
.content-center {
align-content: center;
}
.content-end {
align-content: flex-end;
}
.content-evenly {
align-content: space-evenly;
}
.content-start {
align-content: flex-start;
}
.content-stretch {
align-content: stretch;
}