How to Upper Case / Lower Case / Capitalize Text in CSS?
You can capitalize words, title case words or lowercase words in a block or div using pure CSS. Do do this simply use the following statement in your CSS style definition file:
/* Upper Case */
text-transform: uppercase;
/* Title Case */
text-transform: capitalize;
/* Lower Case */
text-transform: lowercase;
Listed in
Great way to titlecase your text whenever you need it without hard coding it!
Text transformation without JavaScript? This one is fantastic. Thank you!
I didn't know you can titlecase words in pure CSS without actually replacing letters. Nice tip.