|
CSS text-transform Property
Complete CSS Reference
Example
Transform text in different elements:
h1 {text-transform:uppercase}
h2 {text-transform:capitalize}
p {text-transform:lowercase} |
|
Definition and Usage
The text-transform property controls the capitalization of text.
| Default value: |
none |
| Inherited: |
yes |
| Version: |
CSS1 |
| JavaScript syntax: |
object.style.textTransform="uppercase" |
Browser Support

The text-transform property is supported in all major browsers.
Note: Internet Explorer does not support the property value "inherit".
Property Values
| Value |
Description |
| none |
No capitalization. The text renders as it is. This is
default |
| capitalize |
Transforms the first character of each word to uppercase |
| uppercase |
Transforms all characters to uppercase |
| lowercase |
Transforms all characters to lowercase |
| inherit |
Specifies that the value of the text-transform property should be inherited
from the parent element |
Related Pages
CSS tutorial: CSS Text
HTML DOM reference: textTransform property
Complete CSS Reference

Need an easy way to get data into XML, or transform XML to another format?
MapForce lets you map XML data to/from any combination of XML, database, flat file, Excel 2007, XBRL, or Web services data.
Then it transforms data instantly or auto-generates royalty-free data integration code for recurrent conversions.
Download a free, fully functional 30-day trial to experience the following features:
- Easy-to-use, graphical data mapping interface
- Instant data transformation
- XSLT 1.0/2.0 and XQuery code generation
- Java, C#, and C++ code generation
- Advanced data processing functions
- Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more
- Visual Studio & Eclipse integration
Download a fully-functional trial today!
|
|
|
|