Place Self
Controls how single items are justified and aligned simultaneously.
| Class | Style |
|---|---|
ps-auto | place-self: auto; |
ps-c | place-self: center; |
ps-e | place-self: end; |
ps-s | place-self: start; |
ps-st | place-self: stretch; |
Auto
The item will use the default alignment based on the container's alignment properties.
<div id="area"> <div class="d-g g-4 gtc-3 pi-st"> <div class="ai-c bg-indigo-9 d-f jc-c p-8 rad-1 tc-indigo-5">A</div> <div class="ai-c bg-indigo d-f jc-c p-8 ps-auto rad-1 tc-white">B</div> <div class="ai-c bg-indigo-9 d-f jc-c p-8 rad-1 tc-indigo-5">C</div> </div></div>Center
The item will be centered within its grid area.
<div id="area"> <div class="d-g g-4 gtc-3 pi-st"> <div class="ai-c bg-indigo-9 d-f jc-c p-8 rad-1 tc-indigo-5">A</div> <div class="ai-c bg-indigo d-f jc-c p-8 ps-c rad-1 tc-white">B</div> <div class="ai-c bg-indigo-9 d-f jc-c p-8 rad-1 tc-indigo-5">C</div> </div></div>End
The item will be aligned to the end of its grid area.
<div id="area"> <div class="d-g g-4 gtc-3 pi-st"> <div class="ai-c bg-indigo-9 d-f jc-c p-8 rad-1 tc-indigo-5">A</div> <div class="ai-c bg-indigo d-f jc-c p-8 ps-e rad-1 tc-white">B</div> <div class="ai-c bg-indigo-9 d-f jc-c p-8 rad-1 tc-indigo-5">C</div> </div></div>Start
The item will be aligned to the start of its grid area.
<div id="area"> <div class="d-g g-4 gtc-3 pi-st"> <div class="ai-c bg-indigo-9 d-f jc-c p-8 rad-1 tc-indigo-5">A</div> <div class="ai-c bg-indigo d-f jc-c p-8 ps-s rad-1 tc-white">B</div> <div class="ai-c bg-indigo-9 d-f jc-c p-8 rad-1 tc-indigo-5">C</div> </div></div>Stretch
The item will stretch to fill its grid area along the cross axis.
<div id="area"> <div class="d-g g-4 gtc-3 pi-st"> <div class="ai-c bg-indigo-9 d-f jc-c p-8 rad-1 tc-indigo-5">A</div> <div class="ai-c bg-indigo d-f jc-c p-8 ps-st rad-1 tc-white">B</div> <div class="ai-c bg-indigo-9 d-f jc-c p-8 rad-1 tc-indigo-5">C</div> </div></div>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Using media queries
You can combine responsive breakpoints like sm:ps-*, md:ps-*, lg:ps-*, and xxl:ps-* to allow targeting specific utilities in different viewports.
Using hover states
Alternatively, you can apply :hover by using h:ps-* utility to override elements and change their values when hovering over them.