Entry 03

Tabular numbers

Use it on any number that changes or sits in a column, such as prices, tables, timers and counters.

Open
In the first column the digits line up and the running timer keeps its width. In the second the digits drift and the unit jitters.
Code CSS · 3 lines
.price,
td,
time { font-variant-numeric: tabular-nums; }
Why it works, the rules and the credits 1 reason · 2 rules · support · credits

Why it works

  1. Every digit gets the same width, so columns line up and a ticking value does not shift its neighbors.

Rules

  1. Do not set it globally. Proportional digits read better in prose.
  2. The font must ship tabular figures, or nothing changes.

Support

Chrome
52
Firefox
34
Safari
9.1

Credits