Justify Items
Controls the alignment of grid elements relative to their inline axis.
Widely available
This feature is well established and works across many devices and browser versions.
ji-cjustify-items: center;ji-ejustify-items: end;ji-sjustify-items: start;ji-stjustify-items: stretch;Center
The items will be centered within their grid area along the inline axis.
<div class="p-r c-white"> <div class="d-g g-4 gtc-3 ji-c"> <div class="ai-c bg-indigo d-f d-16 jc-c">A</div> <div class="ai-c bg-indigo d-f d-16 jc-c">B</div> <div class="ai-c bg-indigo d-f d-16 jc-c">C</div> </div></div>End
The items will be aligned to the end of their grid area along the inline axis.
<div class="p-r c-white"> <div class="d-g g-4 gtc-3 ji-e"> <div class="ai-c bg-indigo d-f d-16 jc-c">A</div> <div class="ai-c bg-indigo d-f d-16 jc-c">B</div> <div class="ai-c bg-indigo d-f d-16 jc-c">C</div> </div></div>Start
The items will be aligned to the start of their grid area along the inline axis.
<div class="p-r c-white"> <div class="d-g g-4 gtc-3 ji-s"> <div class="ai-c bg-indigo d-f d-16 jc-c">A</div> <div class="ai-c bg-indigo d-f d-16 jc-c">B</div> <div class="ai-c bg-indigo d-f d-16 jc-c">C</div> </div></div>Stretch
The items will stretch to fill their grid area along the inline axis.
<div class="p-r c-white"> <div class="d-g g-4 gtc-3 ji-st"> <div class="ai-c bg-indigo d-f d-14 jc-c">A</div> <div class="ai-c bg-indigo d-f d-14 jc-c">B</div> <div class="ai-c bg-indigo d-f d-14 jc-c">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.
Responsive design
Target different screen sizes by adding breakpoint prefixes. Styles apply from the specified breakpoint and up.
Target specific viewport sizes with breakpoint prefixes
sm:ji-[value]md:ji-[value]lg:ji-[value]xxl:ji-[value]Hover state variant
Apply styles conditionally when users hover over an element using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
h:ji-[value]