Font Variant Numeric
Utilities to change an element's font variant numeric.
The font-variant-numeric CSS property controls the usage of alternate glyphs for numbers, fractions, and ordinal markers.
Normal (Default)
Use d-fvn-normal to deactivate any alternate glyphs.
<p class="d-fvn-normal">...</p>
Ordinal
The class d-fvn-ordinal forces the use of special glyphs for ordinal markers, like 1st, 2nd, 3rd.
<p class="d-fvn-ordinal">1st, 2nd, 3rd, 4th</p>
Proportional-Nums
Use d-fvn-proportional to set different sizes for each number.
<div class="d-fvn-proportional">...</div>
Tabular-Nums
Use d-fvn-tabular for aligning tabular data and preventing layout shifts of dynamically-changing content. For example, a timer counting down.
<div class="d-fvn-tabular"><table>...</table></div>
Diagonal-Fractions
Use d-fvn-diagonal to display numerator and denominator smaller and separated by a slash.
<p class="d-fvn-diagonal">1/2 3/4 5/6</p>
Unset
Use d-fvn-unset to deactivate other value previously set to font-variant-numeric.
<p class="d-fvn-unset">...</p>