text transform

Utilities for controlling the capitalization of text.

2025-04-09

Written by: tdtc

ClassStyles
uppercasetext-transform: uppercase;
lowercasetext-transform: lowercase;
capitalizetext-transform: capitalize;
normal-casetext-transform: none;

Uppercasing text

Use the uppercase utility to uppercase the text of an element:

<p class="uppercase">The quick brown fox ...</p>

Lowercasing text

Use the lowercase utility to lowercase the text of an element:

<p class="lowercase">The quick brown fox ...</p>

Capitalizing text

Use the capitalize utility to capitalize text of an element:

<p class="capitalize">The quick brown fox ...</p>

Resetting text casing

Use the normal-case utility to preserve the original text casing of an element—typically used to reset capitalization at different breakpoints:

<p class="normal-case">The quick brown fox ...</p>

Ref