Open this example in the interactive library
Source code
<style>
.demo {
text-decoration: underline;
text-underline-offset: 0.25em;
}
</style>
<span class="demo">Example link text</span>
Offset an underline with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
text-decoration: underline;
text-underline-offset: 0.25em;
}
</style>
<span class="demo">Example link text</span>