Justify Items
Set item alignment along a container's inline axis.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
Center
Center items within their grid area along the inline axis.
A
B
C
<div class="p-r c-white"> <div class="d-g g-4 gtc-3 ji-c"> <div class="d-f ai-c jc-c w-16 h-16 bg-indigo">A</div> <div class="d-f ai-c jc-c w-16 h-16 bg-indigo">B</div> <div class="d-f ai-c jc-c w-16 h-16 bg-indigo">C</div> </div></div>End
Align items to the end of their grid area along the inline axis.
A
B
C
<div class="p-r c-white"> <div class="d-g g-4 gtc-3 ji-e"> <div class="d-f ai-c jc-c w-16 h-16 bg-indigo">A</div> <div class="d-f ai-c jc-c w-16 h-16 bg-indigo">B</div> <div class="d-f ai-c jc-c w-16 h-16 bg-indigo">C</div> </div></div>Start
Align items to the start of their grid area along the inline axis.
A
B
C
<div class="p-r c-white"> <div class="d-g g-4 gtc-3 ji-s"> <div class="d-f ai-c jc-c w-16 h-16 bg-indigo">A</div> <div class="d-f ai-c jc-c w-16 h-16 bg-indigo">B</div> <div class="d-f ai-c jc-c w-16 h-16 bg-indigo">C</div> </div></div>Stretch
Stretch items to fill their grid area along the inline axis.
A
B
C
<div class="p-r c-white"> <div class="d-g g-4 gtc-3 ji-st"> <div class="d-f ai-c jc-c w-14 h-14 bg-indigo">A</div> <div class="d-f ai-c jc-c w-14 h-14 bg-indigo">B</div> <div class="d-f ai-c jc-c w-14 h-14 bg-indigo">C</div> </div></div>Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:ji-*Small≥640px
md:ji-*Medium≥768px
lg:ji-*Large≥1024px
xxl:ji-*Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:ji-*