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

Content-between separates rows as a group. Use items-center to align the boxes within a single row.

HTML
<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

ClassCSS declarations
content-startalign-content: flex-start;
content-centeralign-content: center;
content-endalign-content: flex-end;
content-betweenalign-content: space-between;
content-aroundalign-content: space-around;
content-evenlyalign-content: space-evenly;
content-stretchalign-content: stretch;
View full generated CSS
Compiled 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;
}