Text Decoration Line

Set the type of decorative lines used on text.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

Usage

Line Through

Sphinx of black quartz, judge my vow.

<p class="c-slate fs-lg ta-c tdl-lt">Sphinx of black quartz, judge my vow.</p>

None

Sphinx of black quartz, judge my vow.

<p class="c-slate fs-lg ta-c tdl-none">Sphinx of black quartz, judge my vow.</p>

Underline

Sphinx of black quartz, judge my vow.

<p class="c-slate fs-lg ta-c tdl-u">Sphinx of black quartz, judge my vow.</p>

Overline

Sphinx of black quartz, judge my vow.

<p class="c-slate fs-lg ta-c tdl-o">Sphinx of black quartz, judge my vow.</p>

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:tdl-*
Small640px
md:tdl-*
Medium768px
lg:tdl-*
Large1024px
xxl:tdl-*
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:tdl-*