Dev Helpers
← Back

Force a new text column before a heading

Force a new text column before a heading with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    columns: 2;
  }
  .demo h3 {
    break-before: column;
  }
</style>
<div class="demo">
  <p>First column content.</p>
  <h3>Next column</h3>
  <p>Second column content.</p>
</div>