break-before

Class Description

break-before-auto

Allows auto page/column breaks before an element.

CSS Rules

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

Usage

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

Responsive

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

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

break-before-avoid

Avoids page/column breaks before an element.

CSS Rules

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

Usage

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

Responsive

Prefix .break-before-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-before-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-before-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-before-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-before-avoid::before" />

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

break-before-all

Forces a page/column break before an element.

CSS Rules

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

Usage

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

Responsive

Prefix .break-before-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-before-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-before-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-before-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-before-all::before" />

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

break-before-avoid-page

Avoids page breaks before an element.

CSS Rules

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

Usage

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

Responsive

Prefix .break-before-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-before-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-before-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-before-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-before-avoid-page::before" />

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

break-before-page

Forces a page break before an element.

CSS Rules

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

Usage

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

Responsive

Prefix .break-before-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-before-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-before-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-before-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-before-page::before" />

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

break-before-left

Forces one or two page breaks before an element so it appears on a left page.

CSS Rules

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

Usage

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

Responsive

Prefix .break-before-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-before-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-before-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-before-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-before-left::before" />

<element class="content-after break-before-left::after" />
.break-before-left Forces one or two page breaks before an element so it appears on a left page.

break-before-right

Forces one or two page breaks before an element so it appears on a right page.

CSS Rules

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

Usage

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

Responsive

Prefix .break-before-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-before-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-before-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-before-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-before-right::before" />

<element class="content-after break-before-right::after" />
.break-before-right Forces one or two page breaks before an element so it appears on a right page.

break-before-column

Forces a column break before an element.

CSS Rules

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

Usage

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

Responsive

Prefix .break-before-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-before-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-before-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-before-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-before-column::before" />

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