Last Updated: February 25, 2016
·
598
· imbernardlee

Uppercase or Lowercase Letters

CSS Code

.lowercase { text-transform: lowercase; }
.uppercase { text-transform: uppercase; }

Html Code

<p class="lowercase">lowercase texts</p>
<p class="uppercase">uppercase texts</p>

Display

lowercase texts

UPPERCASE TEXTS

2 Responses
Add your response

Yeah, always good to do things like this with CSS.
Seen so many people doing it with Javascript in the past!

Also good to mention about text-transform: capitalize;

over 1 year ago ·

@peduarte Indeed, you're right! It's useful to use it especially in form, input. Such code for css is simple better than js.

over 1 year ago ·