Align Content

Set row alignment in multi-row Flex & Grid containers.

Widely available

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

Chrome
Edge
Firefox
Safari

ac-b
align-content: baseline;
ac-c
align-content: center;
ac-fe
align-content: flex-end;
ac-fs
align-content: flex-start;
ac-n
align-content: normal;
ac-st
align-content: stretch;
ac-sa
align-content: space-around;
ac-sb
align-content: space-between;
ac-se
align-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:ac-(value)
Small640px
md:ac-(value)
Medium768px
lg:ac-(value)
Large1024px
xxl:ac-(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:ac-(value)