Monday, January 19, 2009

The font-variant property

The font-variant property has 3 possible values: small-caps, normal and inherit .
The keyword small-caps converts the lower case letters of the text it is applied to to small capital letters. Small capital letters are letters that are of a smaller height than regular capital letters.
Some typefaces have a specific small-caps font. However, none of the typefaces that are supplied with Windows XP have a specific small-caps face. A web browser, however, can simulate small-caps type by down scaling regular capital letters.
Example: <p style="font-variant: small-caps">The Quick Brown Fox Jumps Over The Lazy Dog</p>
Browser Support
Firefox 3, Opera 9.6, Internet Explorer 6, Internet Explorer 7 and Safari 3.2 simulate small-caps type when used with the typefaces available in Windows XP.

No comments: