XML technologies / CSS / Advanced websites with CSS / CSS property reference / font-variant
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
The property font-variant displays text in small capitals, replacing lowercase letters with reduced-size uppercase letters.
The Latin alphabet is exceptional in distinguishing uppercase and lowercase. The property has no effect on writing systems without this distinction.
Inherited: yes
See also: font
Values
normal or small-caps.
Default value: normal
Compatibility
CSS version: 1
Supported by most CSS-capable browsers except Netscape 4.
Internet Explorer 6, except in “Standards-Compliant Mode”, and all earlier Windows versions, as well as Internet Explorer 4 for Macintosh, display small-caps as full capitals rather than small capitals. Internet Explorer 6 for Windows in “Standards-Compliant Mode” and Internet Explorer 5 for Macintosh reduce uppercase letters to simulate small capitals.
No currently available browser uses a typeface’s true small capitals, even when a separate character set is provided.
Example
The following rule displays all headings in small capitals:
h1, h2, h3, h4, h5, h6 {
font-variant: small-caps;
}
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg