CSS TEXT-TRANSFORM
This property sets the casing style for a section of text. Content may not be affected if it is not in the ISO 8859-1 character set or does not have an applicable alternate case character to convert to.
Inherited: Yes
Examples
| p {text-transform: uppercase} |
Possible Values
| Value | Description |
|---|---|
| inherit | Explicitly sets the value of this property to that of the parent |
| none | Defines normal text, with lower case letters and capital letters |
| capitalize | Each word in a text starts with a capital letter |
| uppercase | Defines only capital letters |
| lowercase | Defines no capital letters, only lower case letters |


3 Responses
the width property is an optional one? Opera chooses to ignore it!
hi, thanks for the article. But I was looking for a css property to display my label with the first letter capitalized. Like a ucfirst() in php.
Do you know how to do that in css please?
enovline
Tried using pseudo-elements, like so?:
#contactform label :first-letter {
text-transform: uppercase;
}