text-transform property
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:
Uppercases the first letter of each word. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
Lowercases all letters of each word. | |||||||
No text transformation is used. | |||||||
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?
|
Supported by tags:
a, abbr, acronym, address, b, baseFont, bdo, big, blink, blockQuote, body, button, caption, center, cite, code, col, colGroup, dd, del, dfn, dir, div, dl, dt, em, fieldSet, font, form, H1, H2, H3, H4, H5, H6, html, i, input:button, input:file, input:password, input:reset, input:search, input:submit, input:text, ins, isIndex, kbd, label, legend, li, listing, marquee, menu, nobr, ol, optGroup, option, p, plainText, pre, q, rt, ruby, s, samp, select, small, span, strike, strong, sub, sup, table, tBody, td, textArea, tFoot, th, tHead, tr, tt, u, ul, var, xmp
Related pages:
color
font
font-family
font-size
font-size-adjust
font-style
font-variant
font-weight
text-align
text-align-last
text-autospace
text-decoration
text-indent
text-justify
text-kashida-space
text-overflow
text-shadow
text-transform
text-underline-position
font
font-family
font-size
font-size-adjust
font-style
font-variant
font-weight
text-align
text-align-last
text-autospace
text-decoration
text-indent
text-justify
text-kashida-space
text-overflow
text-shadow
text-transform
text-underline-position
External links:
text-transform (MSDN)
text-transform (Mozilla Developer Center)
text-transform (Safari Reference Library)
text-transform (W3C)
text-transform (Mozilla Developer Center)
text-transform (Safari Reference Library)
text-transform (W3C)
User Contributed Comments