Name

text-transform

Values:

uppercase | lowercase | capitalize | none | inherit

Initial value:

none

Applies to:

All elements.

Inherited:

Yes.

Computed value:

As specified.

Description:

This property changes the case of letters in an element, regardless of the case of the text in the document source. The determination of which letters are to be capitalized by the value capitalize is not precisely defined, as it depends on user agents knowing how to recognize a “word.”

Examples:

h1 {text-transform: uppercase;}
.title {text-transform: capitalize;}

Supported by:

Firefox, Internet Explorer, Opera, Safari.

Get CSS Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.