Flexbox & Grid
Utilities for adjusting the way rows are distributed across multi-row flex and grid containers.
| Class | Styles |
|---|---|
| content-normal | align-content: normal; |
| content-center | align-content: center; |
| content-start | align-content: flex-start; |
| 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-baseline | align-content: baseline; |
| content-stretch | align-content: stretch; |
Reach for content-start to stack your rows tightly against the beginning of the cross axis:
<div class="grid h-56 grid-cols-3 content-start gap-4 ..."> <div>01</div> <div>02</div> <div>03</div> <div>04</div> <div>05</div></div>Reach for content-center to gather your rows neatly around the middle of the cross axis:
<div class="grid h-56 grid-cols-3 content-center gap-4 ..."> <div>01</div> <div>02</div> <div>03</div> <div>04</div> <div>05</div></div>Reach for content-end to push your rows flush against the far end of the cross axis:
<div class="grid h-56 grid-cols-3 content-end gap-4 ..."> <div>01</div> <div>02</div> <div>03</div> <div>04</div> <div>05</div></div>Reach for content-between to spread your rows out so that an equal measure of space falls between each line:
<div class="grid h-56 grid-cols-3 content-between gap-4 ..."> <div>01</div> <div>02</div> <div>03</div> <div>04</div> <div>05</div></div>Reach for content-around to spread your rows out so that an equal measure of space wraps around each line:
<div class="grid h-56 grid-cols-3 content-around gap-4 ..."> <div>01</div> <div>02</div> <div>03</div> <div>04</div> <div>05</div></div>Reach for content-evenly to spread your rows out with an identical measure of space wrapping around every item, while also collapsing the doubled-up gap you would normally notice sitting between each item when using content-around:
<div class="grid h-56 grid-cols-3 content-evenly gap-4 ..."> <div>01</div> <div>02</div> <div>03</div> <div>04</div> <div>05</div></div>Reach for content-stretch to let your content items grow and fill every bit of room along the container’s cross axis:
<div class="grid h-56 grid-cols-3 content-stretch gap-4 ..."> <div>01</div> <div>02</div> <div>03</div> <div>04</div> <div>05</div></div>Reach for content-normal to keep your content items in their natural spot, exactly as if no align-content value
<div class="grid h-56 grid-cols-3 content-normal gap-4 ..."> <div>01</div> <div>02</div> <div>03</div> <div>04</div> <div>05</div></div>Add a breakpoint variant such as md: in front of any align-content utility so it kicks in only at medium screen sizes and above:
<div class="grid content-start md:content-around ..."> <!-- ... --></div>Discover more about working with variants variants documentation.

5-day crash course
Ship UIs you’ll be proud of.
Short, hands-on video lessons straight from the team behind Breezel, dropped right into your inbox every single day for a week.