place-self

Class Description

place-self-auto

Sets the element's alignment in its grid area to auto.

CSS Rules

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

Usage

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

Responsive

Prefix .place-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:place-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="place-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="place-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 place-self-auto::before" />

<element class="content-after place-self-auto::after" />
.place-self-auto Sets the element's alignment in its grid area to auto.

place-self-start

Aligns the element to the start of its grid area on both axes.

CSS Rules

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

Usage

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

Responsive

Prefix .place-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:place-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="place-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="place-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 place-self-start::before" />

<element class="content-after place-self-start::after" />
.place-self-start Aligns the element to the start of its grid area on both axes.

place-self-end

Aligns the element to the end of its grid area on both axes.

CSS Rules

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

Usage

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

Responsive

Prefix .place-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:place-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="place-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="place-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 place-self-end::before" />

<element class="content-after place-self-end::after" />
.place-self-end Aligns the element to the end of its grid area on both axes.

place-self-center

Centers the element within its grid area on both axes.

CSS Rules

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

Usage

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

Responsive

Prefix .place-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:place-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="place-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="place-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 place-self-center::before" />

<element class="content-after place-self-center::after" />
.place-self-center Centers the element within its grid area on both axes.

place-self-stretch

Stretches the element to fill its grid area on both axes.

CSS Rules

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

Usage

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

Responsive

Prefix .place-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:place-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="place-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="place-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 place-self-stretch::before" />

<element class="content-after place-self-stretch::after" />
.place-self-stretch Stretches the element to fill its grid area on both axes.

place-self-end-safe

Safely aligns the element to the end of its grid area, preventing overflow clipping.

CSS Rules

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

Usage

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

Responsive

Prefix .place-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:place-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="place-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="place-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 place-self-end-safe::before" />

<element class="content-after place-self-end-safe::after" />
.place-self-end-safe Safely aligns the element to the end of its grid area, preventing overflow clipping.

place-self-center-safe

Safely centers the element in its grid area, preventing overflow clipping.

CSS Rules

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

Usage

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

Responsive

Prefix .place-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:place-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="place-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="place-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 place-self-center-safe::before" />

<element class="content-after place-self-center-safe::after" />
.place-self-center-safe Safely centers the element in its grid area, preventing overflow clipping.