Browse documentation
Reference / Flexbox & grid
Place content
Align the entire grid of tracks along both axes in one declaration.
Working example
Out of print
Edition closed
Keep the tracks smaller than the container to see their position change.
<div class="grid h-24 place-content-center border">
<strong>Out of print</strong>
<small>Edition closed</small>
</div>Class reference
| Class | CSS declarations |
|---|---|
place-content-start | place-content: start; |
place-content-center | place-content: center; |
place-content-end | place-content: end; |
place-content-between | place-content: space-between; |
place-content-evenly | place-content: space-evenly; |
View full generated 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;
}