Layout
Classes for deciding whether a column or page is allowed to break inside a given element.
| Class | Styles |
|---|---|
| break-inside-auto | break-inside: auto; |
| break-inside-avoid | break-inside: avoid; |
| break-inside-avoid-page | break-inside: avoid-page; |
| break-inside-avoid-column | break-inside: avoid-column; |
Reach for classes such as break-inside-column and break-inside-avoid-page when you want to shape the way a column or page break lands inside an element:
<div class="columns-2"> <p>Well, let me tell you something, ...</p> <p class="break-inside-avoid-column">Sure, go ahead, laugh...</p> <p>Maybe we can live without...</p> <p>Look. If you think this is...</p></div>Put a breakpoint variant such as md: ahead of a break-inside class so it only takes effect once screens reach medium width and beyond:
<div class="break-inside-avoid-column md:break-inside-auto ..."> <!-- ... --></div>Dig deeper into how variants behave over variants reference guide.

5-day crash course
Build UIs you're proud of.
Short, hands-on video lessons from the team behind Breezel, sent straight to your inbox every single day for a full week.