Các utility để kiểm soát cách ngắt cột hoặc trang bên trong một phần tử.
| 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; |
Sử dụng các utility như break-inside-column và break-inside-avoid-page để kiểm soát cách ngắt cột hoặc trang bên trong một phần tử:
<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>Prefix a break-inside utility with a breakpoint variant like md: to only apply the utility at medium screen sizes and above:
<div class="break-inside-avoid-column md:break-inside-auto ..."> <!-- ... --></div>Learn more about using variants in the variants documentation.