Skip to content

justify-self

Utilities for controlling how an individual grid item is aligned along its inline axis.

Class Effect
justify-self-auto justify-self: auto;
justify-self-start justify-self: start;
justify-self-center justify-self: center;
justify-self-center-safe justify-self: safe center;
justify-self-end justify-self: end;
justify-self-end-safe justify-self: safe end;
justify-self-stretch justify-self: stretch;
justify-self: Basic examplejustify-self: Basic example
if ui.div("grid grid-cols-3 gap-4") {
tile("01")
if ui.div("rounded-lg bg-stripes stripes-violet-500/25 grid") {
tile("02", "w-14 justify-self-center")
}
tile("03")
tile("04")
if ui.div("rounded-lg bg-stripes stripes-violet-500/25 grid") {
tile("05", "w-14 justify-self-end")
}
tile("06")
}