CSS font-variant-numeric property
Description
It affects the rendering of tabular data with fonts. It specifies control over numerical form of data.
Syntax
font-variant-numeric : normal | lining-nums | super
Property values
normal
-
400 value represents a light weight font.
font-variant-numeric: normal;
lining-nums
-
700 value represents a bold weight font.
font-variant-numeric: lining-nums;
oldstyle-nums
-
normal represents normal text. It is same as 400.
font-variant-numeric: oldstyle-nums;
proportional-nums
-
700 value represents a bold weight font.
font-variant-numeric: proportional-nums;
tabular-nums
-
700 value represents a bold weight font.
font-variant-numeric: tabular-nums;
diagonal-fractions
-
700 value represents a bold weight font.
font-variant-numeric: diagonal-fractions;
stacked-fractions
-
700 value represents a bold weight font.
font-variant-numeric: stacked-fractions;
ordinal
-
700 value represents a bold weight font.
font-variant-numeric: ordinal;
slashed-zero
-
700 value represents a bold weight font.
font-variant-numeric: slashed-zero;
Applicable to
It applies to all elements
From web4college, the free CSS digger
#CSS digger
Was this article helpful?