property

font-variant-numeric — CSS reference

Selects numeral styles and spacing. Initial normal; inherited. Tabular numerals request equal advance widths for aligned columns, provided the font supplies the feature. Mutually exclusive alternatives cannot be combined.

Formal Syntax & Structure

css syntaxcss
normal | [ lining-nums | oldstyle-nums ] || [ proportional-nums | tabular-nums ] || [ diagonal-fractions | stacked-fractions ] || ordinal || slashed-zero

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS font lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}
#a{font-variant-numeric:tabular-nums}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>
CSS Reference