pf » CSS Uppercase / All Caps

CSS Uppercase / All Caps

web

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
2 people found this page useful, what do you think?

Trackback Address: 635/F4DC5F52DC24F6B81D3FB2D4E91C82EC
On 02/13/2008 at 8:21:57 AM MST Justice McCay wrote:
1
Thank you!




  



Spell Checker by Foundeo





Subscribe to my RSS Feed: solosub RSS
Tags