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
- Web Design Tips for Programmers - October 28, 2008
- 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 EST Justice McCay wrote:
1
Thank you!
On 07/30/2008 at 4:38:12 PM EDT fedmich wrote:
2
Thanks for this :)
- J2EE Session Cookies on ColdFusion / JRun
- Hands on ColdFusion Security Training
- ColdFusion 9 Solr Vulnerability - Are you at Risk?
- FCKEditor Year 2010 Bug for Firefox 3.6
- jQuery UI Sortable Tutorial
- CFLogin Security Considerations
- Use varchar(max) instead of text in SQL Server
- ColdFusion SOAP Web Services and onRequestStart
Subscribe to my RSS Feed:
RSS
RSS

add to del.icio.us
Pete Freitag is a software engineer, and web developer located in











