You are here: Reference > CSS > properties > text-transform

text-transform property

Browser support:
Specifies the case of the text.
With this property you can change text to uppercase, lowercase or to capitalized.
JavaScript page for this property: textTransform. You can find other example(s) there.

Possible values:

 One of the following values: 
capitalize
Uppercases the first letter of each word.
inherit
Takes the value of this property from the computed style of the parent element.
lowercase
Lowercases all letters of each word.
none
No text transformation is used.
uppercase
Uppercases all letters of each word.
Default: none.

Example HTML code 1:

This example illustrates the use of the text-transform property:
<head>
    <style>
        .example {
            text-transform: capitalize;
        }
    </style>
</head>
<body>
    <p class="example">text-transform</p>
</body>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content