Justify Content

Set item alignment along a container's main axis.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

jc-c
justify-content: center;
jc-fe
justify-content: flex-end;
jc-fs
justify-content: flex-start;
jc-n
justify-content: normal;
jc-st
justify-content: stretch;
jc-sa
justify-content: space-around;
jc-sb
justify-content: space-between;
jc-se
justify-content: space-evenly;

Responsiveness

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

Target viewport sizes with breakpoint prefixes.

sm:jc-(value)
Small640px
md:jc-(value)
Medium768px
lg:jc-(value)
Large1024px
xxl:jc-(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:jc-(value)