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
Written by Bernard Lee
Related protips
2 Responses
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#