Name
text-transform — NN 4 IE 4 CSS 1
Synopsis
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 | noneJavaScript Equivalent
textTransform
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. 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
- IE
[window.]document.all.elementID.style.textTransform
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access