Font-variant property

Last updated: 2026-09-13

font-variant Font-variant property

The font-variant CSS property applies font variant effects such as small-caps, which renders lowercase letters as reduced-size capital letters. The small-caps value is the most widely supported feature.

Category
Initial Valuenormal
InheritedYes
Applies To
Animation Type
CSS VersionCSS1
StatusStandard

📝 Syntax

font-variant: normal | small-caps;

⚙️ Values

ValueTypeDescription
normal | small-capsKeywordFont variant (small capital letters)

▶ Example

Edit the code below and see the live result in the playground:

🌐 Browser Support

Browser ChromeChrome EdgeEdge FirefoxFirefox SafariSafari OperaOpera
font-variant v1 v12 v1 v1 v1
Supported in all major browsers
Tip: small-caps keeps the size of existing capitals and only converts lowercase letters to small capitals, which suits English headings.

❓ FAQ

QDoes the small-caps value of font-variant work with Chinese text?
Asmall-caps renders lowercase letters as small capital letters; Chinese has no case concept, so Hanzi are unaffected, though any Latin letters in the paragraph are changed. If the text is already all uppercase, small-caps leaves the size unchanged.
QWhat is the difference between font-variant: small-caps and text-transform: uppercase?
Auppercase converts every letter to regular capitals whose height matches the digits; small-caps uses reduced-size capital glyphs that preserve the relative height of the original lowercase letters, giving a more elegant look suited to English headings and acronyms.
QWhat can the font-variant shorthand property do in modern CSS?
ACSS3 expanded font-variant into a shorthand controlling ligatures (font-variant-ligatures), numeric forms (font-variant-numeric), and more. For example, font-variant-numeric: tabular-nums makes digits monospaced for alignment in tables and price lists.

📚 Related Tutorials

Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏