pf » CSS Uppercase / All Caps
June 07, 2006
CSS Uppercase / All Caps
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
- CSS Techniques Roundup - 20 CSS Tips and Tricks - September 22, 2005
Trackback Address: 635/F4DC5F52DC24F6B81D3FB2D4E91C82EC
Comments
On 02/13/2008 at 8:21:57 AM MST Justice McCay wrote:
1
Thank you!
- CFSCRIPT Cheatsheet
- 3 New Image Effects for ColdFusion 8
- Googlebot to Submit Web Forms
- ColdFusion 8 Update 1 Fixes some Image Processing Quirks
- 10 Most Useful Image Functions in ColdFusion 8
- Speaking at NYC CFUG This Week
- Adobe AIR Tutorial for HTML / JavaScript Developers
- INFORMATION_SCHEMA Support in MySQL, PostgreSQL
Subscribe to my RSS Feed:
RSS
RSS
add to del.icio.us
Pete Freitag is a software engineer, and web developer located in










