Discover · css-tricks.com

No picture published by css-tricks.com

Comment on Taming Typography: Building a Modern CSS Reset by Devan Vinsi

CSS-Tricks css-tricks.com

Thank you for pulling all of this together into tidy-typography.css, Stu. The section I keep coming back to is the one on rendering and fallback sanity. I spend a lot of time previewing font pairings, and the fallback swap is exactly where most sites lose their rhythm — a display face loads, the fallback is visibly narrower or taller, and the whole layout jumps. Your point about font-size-adjust: from-font reducing that apparent size change while a webfont swaps in is the clearest explanation of that fix I have read, and pairing it with font-synthesis: none so the browser does not invent a bold or italic face the family does not actually have makes the reset feel considered rather than…

The fluid typography section was the most useful part for me in practice. Using container query units so a heading scales to the column it occupies, instead of clamp() with vw scaling it as though it were always in a full-width article, solves a real problem I hit constantly: the same heading in a 300px sidebar should not behave like the same heading in the main column. The same goes for text-wrap: pretty and text-wrap: balance replacing the JavaScript orphan fixers I used to reach for, and the hyphenation tuning with hyphenate-limit-chars and hyphenate-limit-lines — I had never thought carefully about the ladder effect of several hyphenated lines in a row until this article. I also…

More ways to use this
Open on another device
Scan this QR code to open the same public page

Scan to open this page. Your saved notes and account access are not included.

Download QR code

Open the page link

Names and references

  1. Building — person
  2. Comment — person

Keep going

Each of these is read from what this estate already kept: the feed a piece came through, the publisher behind it, the credits and topics the publisher printed. None of it is a recommendation, an identity or a record kept anywhere else.

Also from CSS-Tricks

  1. Comment on When Everything Has Changed, What Do We Do Next? by Patricia GomesPatricia Gomes css-tricks.com
  2. Comment on When Everything Has Changed, What Do We Do Next? by Anselm HannemannAnselm Hannemann css-tricks.com
  3. Comment on When Everything Has Changed, What Do We Do Next? by SabbaSabba css-tricks.com
  4. Comment on When Everything Has Changed, What Do We Do Next? by JiyaJiya css-tricks.com
  5. Comment on Using and Styling the Dialog Element by Geoff GrahamGeoff Graham css-tricks.com
  6. Comment on Using and Styling the Dialog Element by Bachelor of ComputingBachelor of Computing css-tricks.com