indiWiz.com

Subhash's Tech Log

Archive for the ‘css’ tag

Text Transform in CSS

without comments

For one of my blog post, I copied a particular blog author’s name from his blog. The author name was displayed in his blog as TOM BAEYENS. When I copied and pasted it in a text editor, it pasted as: Tom Baeyens. I wondered how did copy-paste change the case of the text.

After little debugging using the Firefox WebDeveloper plugin, I found that the text in the blog had the CSS property text-transform with value uppercase.

After little more study, I learned that text-transform is a CSS2 property which supports the following values:

capitalize Make first character in each word uppercase
uppercase Make all characters uppercase
lowercase Make all characters lowercase
none No transformation

To demonstrate, I write the text with different text-transform values:

none I love JAVA
capitalize I love JAVA
uppercase I love JAVA
lowercase I love JAVA

Written by Subhash Chandran

September 2nd, 2009 at 1:32 pm

Posted in Uncategorized

Tagged with

CSS Cheatsheet Wallpaper in Helvetica

without comments

Found this useful link through digg.

Written by Subhash Chandran

June 16th, 2009 at 9:38 am

Posted in Uncategorized

Tagged with