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?
span,
a,
h2 {
text-transform: capitalize !important;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<span class="ml-5 mt-5 d-block">IT IS AN EXAMPLE TEXT</span>
<h2><a class="ml-5 mt-5 d-block" href="#">IT IS AN EXAMPLE TEXT IN HREF</a></h2>
And you can check in JSFiddle
I want first letter Upper, others lower for all words. Like this:
It Is An Example Text
:word
pseudo-class - is JavaScript a possibility, or does it have to be CSS only? – Eldridge