Place Items
Utilities for controlling how items are justified and aligned at the same time.
Use to place grid items on the start of their grid areas on both axes:
End
<div class="grid grid-cols-3 gap-4 place-items-end h-56 ...">
<div>01</div>
<div>02</div>
<div>03</div>
<div>04</div>
<div>05</div>
<div>06</div>
Use place-items-center
to place grid items on the center of their grid areas on both axes:
Stretch
<div>01</div>
<div>02</div>
<div>03</div>
<div>04</div>
<div>05</div>
</div>
Tailwind lets you conditionally apply utility classes in different states using variant modifiers. For example, use hover:place-items-center
to only apply the place-items-center
utility on hover.
For a complete list of all available state modifiers, check out the Hover, Focus, & Other States documentation.
Breakpoints and media queries
<div class="grid place-items-start md:place-items-center">
</div>
To learn more, check out the documentation on Responsive Design, and other media query modifiers.