Tech Junkie Blog - Real World Tutorials, Happy Coding!: CSS: text-transform

Monday, August 19, 2019

CSS: text-transform

With text-transform you can transform your text into Autobots or Deceptacon? Not exactly, but what  you can do is transform your text to uppercase, lowercase, capitalize it. It's pretty self explanatory.

Here are the examples of a text-transform:

p.upper {text-transform:uppercase}
p.lower {text-transform:lowercase}
p.cap {text-transform: capitalize}

Here are the HTML markup:

            <p class="upper">uppercase me</p>
            <p class="lower">LOWERCASE ME</p>
            <p class="cap">captain america me</p>

Here is the output:













Previous: CSS: The em Unit

No comments:

Post a Comment

Search This Blog