Layout

Break After

Utilities for controlling how a column or page should break after an element.

Quick reference

Class
Properties
break-after-autobreak-after: auto;
break-after-avoidbreak-after: avoid;
break-after-allbreak-after: all;
break-after-avoid-pagebreak-after: avoid-page;
break-after-pagebreak-after: page;
break-after-leftbreak-after: left;
break-after-rightbreak-after: right;
break-after-columnbreak-after: column;

Basic usage

Setting the break-after behavior

Use the break-after-{value} utilities to control how a column or page break should behave after an element. For example, use the break-after-column utility to force a column break after an element.

  1. <div class="columns-2">
  2. <p>Well, let me tell you something, ...</p>
  3. <p class="break-after-column">Sure, go ahead, laugh...</p>
  4. <p>Maybe we can live without...</p>
  5. <p>Look. If you think this is...</p>
  6. </div>

Applying conditionally

Hover, focus, and other states

Tailwind lets you conditionally apply utility classes in different states using variant modifiers. For example, use hover:break-after-column to only apply the break-after-column utility on hover.

  1. <div class="hover:break-after-column">
  2. <!-- ... -->
  3. </div>

For a complete list of all available state modifiers, check out the Hover, Focus, & Other States documentation.

Breakpoints and media queries

You can also use variant modifiers to target media queries like responsive breakpoints, dark mode, prefers-reduced-motion, and more. For example, use md:break-after-column to apply the break-after-column utility at only medium screen sizes and above.

  1. <div class="md:break-after-column">
  2. <!-- ... -->
  3. </div>

To learn more, check out the documentation on Responsive Design, Dark Mode and other media query modifiers.