Skip to content

align-content

Utilities for distributing multi-line flex rows or grid tracks along the cross/block axis.

Flexbox & GridTailwind v4 Spec
ISS preview
Iced + ISS preview demonstrating align-content
ISS preview for align-content
use iss::{flex_tw, tw};
let wrap = flex_tw(chips, tw!("h-48 flex-wrap content-between gap-2"));
Tailwind Class CSS Property / Effect iss::typed Builder
content-normal align-content: normal; .content_normal()
content-start align-content: flex-start; .content_start()
content-end align-content: flex-end; .content_end()
content-center align-content: center; .content_center()
content-between align-content: space-between; .content_between()
content-around align-content: space-around; .content_around()
content-evenly align-content: space-evenly; .content_evenly()
content-stretch align-content: stretch; .content_stretch()
  • Only takes effect when a flex_tw container wraps onto multiple lines or when grid_tw tracks are smaller than the container.

align-items · place-content · flex-wrap