Free guideThe newsletter. Real UI fixes by email, and a free 35-page guide to AI design skills.
Ship Better UI

, 53 seconds

Why do numbers jiggle on a live dashboard?

The rule

Give any number that updates or stacks in a column tabular figures (font-variant-numeric: tabular-nums), so every digit gets the same width and nothing beside it moves.

Try it

Apply the fix

Prompt for your AI coding tool

Paste it into Claude Code, Cursor or any AI coding tool, then share the page you want fixed.

Review the numbers in the interface I share. Every number that updates, or stacks in a column, should use tabular figures, so nothing beside it moves. Fix what fails, and change nothing else.

1. Find every number that updates while it is on screen, like a live total, and every number that stacks in a column: totals, prices, tables.
2. Turn on tabular figures for each one with one line of CSS: font-variant-numeric: tabular-nums; Every digit then gets the same width.
3. Check the result: when the number changes, whatever sits beside it holds still, and numbers in a column line up.

Keep the font, the sizes, the content and the layout. When you are done, list each number you changed and where it is.

More prompts like this in the free guide 

The problem

The revenue card in the video shows a live total that updates twice a second, with a green growth badge beside it. The rest of the card holds still, but every update shoves the badge sideways. In the video it moved 31 px.

The fix

Turn on tabular figures, where every digit gets the same width. It is one line of CSS: font-variant-numeric: tabular-nums;. Nothing else on the card changes: the same font, the same size, the same numbers. Now the total changes, but nothing moves, and the region counts line up in columns.

Why it works

Most fonts use proportional figures by default: each digit has its own width. In the video's digit strip, a 1 is 42 px wide and a 0 is 66 px at the same size, so a 1 is about a third narrower than a 0. When a live total ticks to its next value, its digits change, so its width changes, and anything set after it is pushed along. With tabular figures every digit in the strip is 65 px wide. A total with the same number of digits keeps one width, so the badge stays where it is. Numbers stacked in a column get the same benefit: their digits line up.

How to apply it

Any number that updates, or stacks in a column, gets tabular figures: totals, prices, tables. Set the one line on the element that holds the number, then watch it update: whatever sits beside it should hold still, and a column of numbers should line up digit by digit.

Free guide · 35 pages

Get fixes like this by email

Join the newsletter and get the 35-page guide to AI design skills: the skills, the order to use them in, and prompts to copy.

Watch it on

More on type

All 6 lessons on type