Browse documentation

Reference / Flexbox & grid

Place content

Align the entire grid of tracks along both axes in one declaration.

Working example

Keep the tracks smaller than the container to see their position change.

HTML
<div class="grid h-24 place-content-center border">
  <strong>Out of print</strong>
  <small>Edition closed</small>
</div>

Class reference

ClassCSS declarations
place-content-startplace-content: start;
place-content-centerplace-content: center;
place-content-endplace-content: end;
place-content-betweenplace-content: space-between;
place-content-evenlyplace-content: space-evenly;
View full generated CSS
Compiled CSS
.place-content-between {
  place-content: space-between;
}
.place-content-center {
  place-content: center;
}
.place-content-end {
  place-content: end;
}
.place-content-evenly {
  place-content: space-evenly;
}
.place-content-start {
  place-content: start;
}