justify-self

Class Description

justify-self-auto

Sets justify-self to auto, inheriting the parent's justify-items behavior for this item.

CSS Rules

.justify-self-auto {
  justify-self: auto;
}

Usage

<element class="justify-self-auto" />

Responsive

Prefix .justify-self-auto utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:justify-self-auto" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="justify-self-auto:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="justify-self-auto:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before justify-self-auto::before" />

<element class="content-after justify-self-auto::after" />
.justify-self-auto Sets justify-self to auto, inheriting the parent's justify-items behavior for this item.

justify-self-start

Aligns this individual grid/flex item to the start of its inline axis.

CSS Rules

.justify-self-start {
  justify-self: start;
}

Usage

<element class="justify-self-start" />

Responsive

Prefix .justify-self-start utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:justify-self-start" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="justify-self-start:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="justify-self-start:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before justify-self-start::before" />

<element class="content-after justify-self-start::after" />
.justify-self-start Aligns this individual grid/flex item to the start of its inline axis.

justify-self-end

Aligns this individual grid/flex item to the end of its inline axis.

CSS Rules

.justify-self-end {
  justify-self: end;
}

Usage

<element class="justify-self-end" />

Responsive

Prefix .justify-self-end utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:justify-self-end" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="justify-self-end:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="justify-self-end:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before justify-self-end::before" />

<element class="content-after justify-self-end::after" />
.justify-self-end Aligns this individual grid/flex item to the end of its inline axis.

justify-self-center

Centers this individual grid/flex item along its inline axis.

CSS Rules

.justify-self-center {
  justify-self: center;
}

Usage

<element class="justify-self-center" />

Responsive

Prefix .justify-self-center utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:justify-self-center" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="justify-self-center:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="justify-self-center:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before justify-self-center::before" />

<element class="content-after justify-self-center::after" />
.justify-self-center Centers this individual grid/flex item along its inline axis.

justify-self-stretch

Stretches this individual grid/flex item to fill its inline axis.

CSS Rules

.justify-self-stretch {
  justify-self: stretch;
}

Usage

<element class="justify-self-stretch" />

Responsive

Prefix .justify-self-stretch utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:justify-self-stretch" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="justify-self-stretch:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="justify-self-stretch:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before justify-self-stretch::before" />

<element class="content-after justify-self-stretch::after" />
.justify-self-stretch Stretches this individual grid/flex item to fill its inline axis.

justify-self-end-safe

Aligns this item to the end of the inline axis, falling back to start when space is insufficient (overflow-safe).

CSS Rules

.justify-self-end-safe {
  justify-self: safe end;
}

Usage

<element class="justify-self-end-safe" />

Responsive

Prefix .justify-self-end-safe utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:justify-self-end-safe" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="justify-self-end-safe:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="justify-self-end-safe:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before justify-self-end-safe::before" />

<element class="content-after justify-self-end-safe::after" />
.justify-self-end-safe Aligns this item to the end of the inline axis, falling back to start when space is insufficient (overflow-safe).

justify-self-center-safe

Centers this item along the inline axis, falling back to start when space is insufficient (overflow-safe).

CSS Rules

.justify-self-center-safe {
  justify-self: safe center;
}

Usage

<element class="justify-self-center-safe" />

Responsive

Prefix .justify-self-center-safe utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:justify-self-center-safe" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="justify-self-center-safe:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="justify-self-center-safe:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before justify-self-center-safe::before" />

<element class="content-after justify-self-center-safe::after" />
.justify-self-center-safe Centers this item along the inline axis, falling back to start when space is insufficient (overflow-safe).