text-decoration-thickness
En esta página
| Clase | Propiedades CSS |
|---|---|
decoration-<number> |
text-decoration-thickness: <number>px; |
decoration-from-font |
text-decoration-thickness: from-font; |
decoration-auto |
text-decoration-thickness: auto; |
decoration-(length:<custom-property>) |
text-decoration-thickness: var(<custom-property>); |
decoration-[<value>] |
text-decoration-thickness: <value>; |
Examples#
Basic example#
Use decoration-<number> utilities like decoration-2 and decoration-4 to change the text decoration thickness of an element:
{
decoration-1
The quick brown fox jumps over the lazy dog.
decoration-2
The quick brown fox jumps over the lazy dog.
decoration-4
The quick brown fox jumps over the lazy dog.
<!-- [!code classes:decoration-1] -->
<p class="underline decoration-1">The quick brown fox...</p>
<!-- [!code classes:decoration-2] -->
<p class="underline decoration-2">The quick brown fox...</p>
<!-- [!code classes:decoration-4] -->
<p class="underline decoration-4">The quick brown fox...</p>