break-after

Class Description

break-after-auto

Allows auto page/column breaks after an element.

CSS Rules

.break-after-auto {
  break-after: auto;
}

Usage

<element class="break-after-auto" />

Responsive

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

<element class="content-after break-after-auto::after" />
.break-after-auto Allows auto page/column breaks after an element.

break-after-avoid

Avoids page/column breaks after an element.

CSS Rules

.break-after-avoid {
  break-after: avoid;
}

Usage

<element class="break-after-avoid" />

Responsive

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

<element class="md:break-after-avoid" />

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="break-after-avoid: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="break-after-avoid: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 break-after-avoid::before" />

<element class="content-after break-after-avoid::after" />
.break-after-avoid Avoids page/column breaks after an element.

break-after-all

Forces a page/column break after an element.

CSS Rules

.break-after-all {
  break-after: all;
}

Usage

<element class="break-after-all" />

Responsive

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

<element class="md:break-after-all" />

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="break-after-all: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="break-after-all: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 break-after-all::before" />

<element class="content-after break-after-all::after" />
.break-after-all Forces a page/column break after an element.

break-after-avoid-page

Avoids page breaks after an element.

CSS Rules

.break-after-avoid-page {
  break-after: avoid-page;
}

Usage

<element class="break-after-avoid-page" />

Responsive

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

<element class="md:break-after-avoid-page" />

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="break-after-avoid-page: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="break-after-avoid-page: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 break-after-avoid-page::before" />

<element class="content-after break-after-avoid-page::after" />
.break-after-avoid-page Avoids page breaks after an element.

break-after-page

Forces a page break after an element.

CSS Rules

.break-after-page {
  break-after: page;
}

Usage

<element class="break-after-page" />

Responsive

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

<element class="md:break-after-page" />

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="break-after-page: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="break-after-page: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 break-after-page::before" />

<element class="content-after break-after-page::after" />
.break-after-page Forces a page break after an element.

break-after-left

Forces one or two page breaks after an element so the next page is a left page.

CSS Rules

.break-after-left {
  break-after: left;
}

Usage

<element class="break-after-left" />

Responsive

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

<element class="md:break-after-left" />

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="break-after-left: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="break-after-left: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 break-after-left::before" />

<element class="content-after break-after-left::after" />
.break-after-left Forces one or two page breaks after an element so the next page is a left page.

break-after-right

Forces one or two page breaks after an element so the next page is a right page.

CSS Rules

.break-after-right {
  break-after: right;
}

Usage

<element class="break-after-right" />

Responsive

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

<element class="md:break-after-right" />

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="break-after-right: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="break-after-right: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 break-after-right::before" />

<element class="content-after break-after-right::after" />
.break-after-right Forces one or two page breaks after an element so the next page is a right page.

break-after-column

Forces a column break after an element.

CSS Rules

.break-after-column {
  break-after: column;
}

Usage

<element class="break-after-column" />

Responsive

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

<element class="md:break-after-column" />

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="break-after-column: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="break-after-column: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 break-after-column::before" />

<element class="content-after break-after-column::after" />
.break-after-column Forces a column break after an element.