CSS Text
Text can be formatted with uppercase and lowercase letters using the text-transform property.
It can be used to capitalize the first letter of each word or to change everything to uppercase or lowercase letters:
p.uppercase {
text-transform: uppercase;
}
p.lowercase {
text-transform: lowercase;
}
p.capitalize {
text-transform: capitalize;
}
Property | Description |
---|---|
text-transform | Controls the capitalization of text |
CodingAsk.com is designed for learning and practice. Examples may be made simpler to aid understanding. Tutorials, references, and examples are regularly checked for mistakes, but we cannot guarantee complete accuracy. By using CodingAsk.com, you agree to our terms of use, cookie, and privacy policy.
Copyright 2010-2024 by Refsnes Data. All Rights Reserved.