text-transformNN 4 IE 4 CSS 1

Inherited: Yes

Controls the capitalization of the element's text. When a value other than none is assigned to this attribute, the cases of all letters in the source text are arranged by the style sheet, overriding the case of the source text characters.

 
CSS Syntax
 
text-transform: caseType | none
 
Value

A value of none allows the case of the source text to be rendered as-is. Other available constant values are capitalize | lowercase | uppercase. A value of capitalize sets the first character of every word to uppercase. The values lowercase and uppercase render all characters of the element text in their respective cases.

 
Initial Value

none

 
Example
 
h2 {text-transform: capitalize}
 
Applies To

All elements.

 
Object Model Reference
 
[window.]document.getElementById("elementID").style.textTransform