Control Your Text Case Through CSS- Lowercase And Uppercase

Image frame
Control Your Text Case Through CSS- Lowercase And Uppercase
Maruf
Jul 31st, 2008
Maruf scribbled this post.

Capslock

Back in the day I always used to use a programming language like PHP to control text case. And even further back in the day, I used to control the case manually, by typing ALL IN UPPERCASE, or being extra careful to use proper case.

I still use PHP some times, for example, to make every letter lowercase in PHP, I would use the function strtolower. But there’s also a very cool way of controlling the case with CSS, which I think a lot of the times people forget about (I Know I do).


text-transform: lowercase; /* force text to lowercase */
text-transform: uppercase; /* force text to uppercase */
text-transform: capitalize; /* force text to proper case */

Hopefully now I’ve written this down, I’ll remember it more often.


Filed away: CSS

feel free to leave a scribble

Name:
Email:
gravatar
Want an image next to your comments?
visit gravatar.com
Message:
Get a free quote