CSS2 Text Transform - CSS Examples

From the W3 - 16 Text
From the W3 - 16.5 Capitalization: the 'text-transform' property

This property controls capitalization effects of an element's text. Values have the following meanings:

capitalize
Puts the first character of each word in uppercase.
uppercase
Puts all characters of each word in uppercase.
lowercase
Puts all characters of each word in lowercase.
none
No capitalization effects.

CSS examples using the text transform property

.ttc{text-transform:capitalize;}

Puts the first character of each word in uppercase.

.ttu{text-transform:uppercase;}

Puts all characters of each word in uppercase.

.ttl{text-transform:lowercase;}

Puts all characters of each word in lowercase.

.ttn{text-transform:none;}

No capitalization effects.


 


SEO Consultants Directory