Browse documentation
Reference / Typography
Text decoration lines
Draw an underline, overline, or strike-through across text.
Working example
$64
$48
Use del and ins for a meaningful revision so the HTML retains the old and new values.
<p class="flex items-baseline gap-2">
<del class="line-through text-neutral-600">$64</del>
<ins class="no-underline font-bold">$48</ins>
</p>Class reference
| Class | CSS declarations |
|---|---|
underline | text-decoration-line: underline; |
overline | text-decoration-line: overline; |
line-through | text-decoration-line: line-through; |
no-underline | text-decoration-line: none; |
View full generated CSS
.line-through {
text-decoration-line: line-through;
}
.no-underline {
text-decoration-line: none;
}
.overline {
text-decoration-line: overline;
}
.underline {
text-decoration-line: underline;
}