Open this example in the interactive library
Source code
<div class="demo columns-2 [&_h3]:break-before-column">
<p>First column content.</p>
<h3>Next column</h3>
<p>Second column content.</p>
</div>
Force a new text column before a heading with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo columns-2 [&_h3]:break-before-column">
<p>First column content.</p>
<h3>Next column</h3>
<p>Second column content.</p>
</div>