Dev Helpers
← Back

Auto-fit definition pairs

Auto-fit definition pairs with Tailwind CSS 4 utilities. The preview uses precompiled styles.

Open this example in the interactive library

Source code

<dl
  class="demo grid grid-cols-[repeat(auto-fit,minmax(min(100%,8rem),1fr))] gap-[.8rem]"
>
  <div>
    <dt>Width</dt>
    <dd>210 mm</dd>
  </div>
  <div>
    <dt>Height</dt>
    <dd>297 mm</dd>
  </div>
</dl>