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

ji-c
justify-items: center;
ji-e
justify-items: end;
ji-s
justify-items: start;
ji-st
justify-items: stretch;

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:ji-(value)
Small640px
md:ji-(value)
Medium768px
lg:ji-(value)
Large1024px
xxl:ji-(value)
Extra Large1536px

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-(value)