Dev Helpers
← Back

Automatically fit narrow text columns

Automatically fit narrow text columns with Tailwind CSS 4 utilities. The preview uses precompiled styles.

Open this example in the interactive library

Source code

<div class="demo columns-[10rem] gap-4">
  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>