CSS Uppercase / All Caps
June 07, 2006
Need to know how to make text all uppercase or in all caps with CSS? Add the following to your CSS stylesheet:
div.uppercase { text-transform: uppercase; }
That will take all the letters and capitalize them. If you only want the first letter of each word to be in upper case, then use capitalize in the text-transform property.
div.caps { text-transform: capitalize; }
Check out my CSS Cheat Sheet for more handy css tricks.
Related Entries
- Web Design Tips for Programmers - October 28, 2008
- CSS Techniques Roundup - 20 CSS Tips and Tricks - September 22, 2005



add to del.icio.us



