place-content
Utilities for controlling how content is justified and aligned at the same time.
| Class | Effect |
|---|---|
place-content-center |
place-content: center; |
place-content-center-safe |
place-content: safe center; |
place-content-start |
place-content: start; |
place-content-end |
place-content: end; |
place-content-end-safe |
place-content: safe end; |
place-content-between |
place-content: space-between; |
place-content-around |
place-content: space-around; |
place-content-evenly |
place-content: space-evenly; |
place-content-baseline |
place-content: baseline; |
place-content-stretch |
place-content: stretch; |
Examples
Section titled “Examples”place-content-center
Section titled “place-content-center”

if ui.div(ui.cx("grid h-48 grid-cols-2 gap-4 rounded-lg bg-stripes stripes-violet-500/25", c)) { for i in 1 ..= 4 { ui.key(i) tile(fmt.tprintf("%02d", i), "w-16") }}place-content-start
Section titled “place-content-start”

if ui.div(ui.cx("grid h-48 grid-cols-2 gap-4 rounded-lg bg-stripes stripes-violet-500/25", c)) { for i in 1 ..= 4 { ui.key(i) tile(fmt.tprintf("%02d", i), "w-16") }}place-content-end
Section titled “place-content-end”

if ui.div(ui.cx("grid h-48 grid-cols-2 gap-4 rounded-lg bg-stripes stripes-violet-500/25", c)) { for i in 1 ..= 4 { ui.key(i) tile(fmt.tprintf("%02d", i), "w-16") }}place-content-between
Section titled “place-content-between”

if ui.div(ui.cx("grid h-48 grid-cols-2 gap-4 rounded-lg bg-stripes stripes-violet-500/25", c)) { for i in 1 ..= 4 { ui.key(i) tile(fmt.tprintf("%02d", i), "w-16") }}