Name
font-variant — NN n/a IE 4 CSS 1
Synopsis
Inherited: Yes
Determines whether the element should be rendered in all uppercase letters in such a way that lowercase letters of the source code are rendered in smaller uppercase letters. If a font family contains a small caps variant, the browser should use it automatically. More likely, however, the browser calculates a smaller size for the uppercase letters that take the place of source code lowercase letters. In practice, Internet Explorer 4 renders the entire source code content as uppercase letters of the same size as the parent element’s font, regardless of the case of the source code.
CSS Syntax
font-variant: fontVariantValue
Any of the following constant values: normal |
small-caps.
Initial Value
normal
Example
EM {font-variant: small-caps}Applies To
All elements.
Object Model Reference
- IE
[window.]document.all.elementID.style.fontVariant
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access