The font-variant property enables you to select the small-caps font within a font family.
Overview tablenormal
fontVariant
font-variant: inherit
font-variant: normal
font-variant: small-caps
A simple example to show the effect achieved when small-caps are applied to a text paragraph.
<p>I think WebPlatform rocks.</p>
The CSS applied to the HTML above.
p {
font-size: 300%;
font-variant: small-caps;
}
Notes
In (CSS Fonts Module Level 3, W3C Working Draft 11 December 2012), this property is extended. However, no browser seems to support these changes yet.
Related specificationsfont-variant
font-variant
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4