css

Capitalize, Uppercase, Lowercase, text-transform in CSS

You can do transform a text to its capitalized form, lowercase form, or uppercase form using text-transform CSS property.

/* TO CAPITALIZE A SENTENCE */
.capitalize {
    text-transform: capitalize;
}

/* TO UPPERCASE A SENTENCE */
.uppercase {
    text-transform: uppercase;
}

/* TO LOWERCASE A SENTENCE */
.lowercase {
    text-transform: lowercase;
}
Was this helpful?