The counter that jiggles
A live timer counts down: 0:59, 0:58, 0:57. The digits shift left and right by a pixel or two on every tick, and the whole element twitches. A price column in a table has its digits almost but not quite aligned.
Proportional figures can have different advances, for example a narrower 1 than 0. A timer or numeric column can use tabular figures, which give the supported digits equal advances in the chosen font.
.timer, .price-column { font-variant-numeric: tabular-nums; }Check that the font supports the feature. Compare two values with the same number of digits in the timer. Separators, digit-count changes and layout alignment can still affect total width.
Lining and oldstyle
Lining figures share a common height near the capitals. Oldstyle or text figures have varied heights and may include forms that extend above or below the main digit height. Which digits do that depends on the font. This is a separate choice from equal or proportional advances.
Oldstyle figures sit more comfortably inside lowercase prose, because they have the same up-and-down profile as the letters around them. Lining figures stand out, which is right in a table, in an all-caps setting, or where a number is the point.
p { font-variant-numeric: oldstyle-nums; }
table { font-variant-numeric: lining-nums tabular-nums; }Check which variants the exact font supports, and inspect the result in the number system your readers will use. W3C numeric variants.
Dashes, and the three of them
- Hyphen
-joins some compounds and can mark word breaks. - En dash
–can mark a range or connection, as in 1998–2004 or London–Delhi. - Em dash
—can mark a sentence break. The actual width of either dash depends on the font. - Minus sign
−marks negative values or subtraction, as in−5°C. It has its own character code.
British practice typically uses a spaced en dash for the parenthetical break where American practice uses a closed-up em dash. Both are correct within their conventions; what is not correct is a hyphen standing in for either.
Quotes and primes
Curly quotation marks, straight quotation marks, and prime symbols are distinct characters. Use prime and double prime, U+2032 and U+2033, for a measurement such as 5′ 11″ when those units are intended.
A sign may use a straight quote in place of a double prime. For a typeset measurement, use the actual prime symbol. For a name such as O’Brien, check the apostrophe and the spelling supplied by the person.
Indian digit grouping
Worth its own section for this audience, because getting it wrong is immediately visible to a large number of readers.
The en-IN example groups the last three digits and the preceding digits in pairs, as in 1,20,000 and 1,00,00,000. Pick the locale and numbering options for the readers and purpose of the display.
This is a formatting decision, not a font one, and JavaScript handles it:
new Intl.NumberFormat('en-IN').format(1200000) // "12,00,000"
new Intl.NumberFormat('en-IN', {
style: 'currency', currency: 'INR'
}).format(1200000) // "₹12,00,000.00"A locale-aware formatter can handle grouping, decimal and currency conventions for its supported locales. Use the actual audience settings and compare the results with real amounts, including negative values. Unicode CLDR numbers.
Spaces that should not break
Some pairs must not be split across a line: a number and its unit, an honorific and a name, a figure and its currency symbol.
10 kg ₹1,200 Dr Sharma Figure 4Use a nonbreaking space where a deliberate pair should stay on one line. A thin space provides a different visual width. A narrow nonbreaking space provides a narrow gap with a no-break behaviour. Check the font and line breaking in the target layout. Unicode line breaking.
The ellipsis and the degree sign
Three full stops in a row are not an ellipsis. The character … has its own spacing and will not break across a line. Likewise the degree sign ° is not a superscript o, and the multiplication sign × is not a lowercase x: 1920 × 1080 against 1920 x 1080 is a small difference that a designer’s eye catches instantly.
None of this is decoration. Each of these details exists because somebody needed the distinction and the typewriter could not make it. The characters came back; most people just never found out.
Check your understanding
A timer’s digits shift as it changes from 0:59 to 0:58. The team wants to keep the existing font, which has tabular figures. What setting addresses unequal digit advances?
Pick the one you would defend. Your answer stays private.
Your place and first choices stay on this browser. Classroom credit is recorded separately.
Stuck on something?Ask Meher, your AI tutor