list-style-position

Class Description

list-inside

Sets list-style-position: inside.

CSS Rules

.list-inside {
  list-style-position: inside;
}

Usage

<element class="list-inside" />

Responsive

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

<element class="md:list-inside" />

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="list-inside: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="list-inside: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 list-inside::before" />

<element class="content-after list-inside::after" />
.list-inside Sets list-style-position: inside.

list-outside

Sets list-style-position: outside.

CSS Rules

.list-outside {
  list-style-position: outside;
}

Usage

<element class="list-outside" />

Responsive

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

<element class="md:list-outside" />

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="list-outside: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="list-outside: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 list-outside::before" />

<element class="content-after list-outside::after" />
.list-outside Sets list-style-position: outside.