Dev Helpers
← Back

Flow text into two columns

Flow text into two columns with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    columns: 2;
    column-gap: 1rem;
  }
</style>
<div class="demo">
  A good reference makes it easy to find a pattern, see it in a browser, and
  adapt it to your own work. This sample text is long enough to show how content
  flows between columns.
</div>