I have an example text and it all Uppercase. I want to make it capitalized text, but css text-transform doesn't work. How can i do this?
And you can check in JSFiddle
I want first letter Upper, others lower for all words. Like this:
It Is An Example Text
Capitalize only affects the first letters of words. It will not change the case of the rest of the letters in a word. For example, if you capitalize a word that's in all capital letters already, the other letters in the word won't switch to lowercase. This is nice when your text includes an acronym or abbreviation that shouldn't include any lowercase letters.
If you change your provided text to lowercase, you will see it work just fine!
But to be answer complete, i will try to find a way to capitalize with the desired way no matter the input.
Seems it is not possible with CSS only, for something beside a single word text if you are not wrapping every word in a different element.
Single word snippet
span,
a,
h2 {
text-transform:lowercase
}
span:first-letter,
a:first-letter,
h2:first-letter {
text-transform: capitalize;
}