Open this example in the interactive library
Source code
<span class="demo underline underline-offset-[.25em]">Example link text</span>
Offset an underline with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<span class="demo underline underline-offset-[.25em]">Example link text</span>