Easy Tutorial
❮ Prop Style Borderleftwidth Prop Style Columns ❯

Style textTransform Property


Definition and Usage

The textTransform property sets or returns the capitalization of text.

Syntax

Set the textTransform property:

Return the textTransform property:

Value Description
none Default. No characters are transformed.
capitalize The first letter of each word is converted to uppercase.
uppercase All characters are converted to uppercase.
lowercase All characters are converted to lowercase.
inherit The value of the textTransform property is inherited from the parent element.

Browser Support

All major browsers support the textTransform property.

Note: IE7 and earlier versions do not support the "inherit" value. IE8 only supports "inherit" if the !DOCTYPE is specified. IE9 supports "inherit".


Example

Convert the first letter of each word to uppercase:


❮ Prop Style Borderleftwidth Prop Style Columns ❯