Skip to content

Text Decoration & Overflow

Control text decoration lines (underline, overline, line-through) and how overflowing text is handled.

Class Properties
.underline text-decoration-line: underline
.overline text-decoration-line: overline
.line-through text-decoration-line: line-through
.no-underline text-decoration-line: none
<a class="underline">Underlined link</a>
<span class="line-through">Strikethrough text</span>
<a class="no-underline">Link without underline</a>
Class Properties
.truncate overflow: hidden; text-overflow: ellipsis; white-space: nowrap
.text-ellipsis text-overflow: ellipsis
.text-clip text-overflow: clip
<!-- Truncate long text with ellipsis -->
<p class="truncate w-64">
This is a very long text that will be truncated with an ellipsis.
</p>
<!-- Clip overflowing text -->
<p class="text-clip w-64">This text will be clipped without ellipsis.</p>

::: tip .truncate is a shorthand that combines overflow: hidden, text-overflow: ellipsis, and white-space: nowrap for single-line text truncation. :::

// From _utilities.scss
$text-decoration-list: (
underline,
overline,
line-through,
no-underline
) !default;
$text-overflow-list: (truncate, text-ellipsis, text-clip) !default;