Death to px, long live ch
Brajeshwar
20 points
10 comments
August 23, 2026
Related Discussions
Found 5 related stories in 55.6ms across 4,152 title embeddings via pgvector HNSW
- The death and rebirth of my home server steinuil · 129 pts · July 19, 2026 · 40% similar
- Pseudpocalypse surprisetalk · 14 pts · July 14, 2026 · 40% similar
- Digital Immortality matthewsharpe3 · 28 pts · August 19, 2026 · 40% similar
- Htmx live is cool. Datastar is fast. This cow is raw and strong bobowski · 13 pts · August 22, 2026 · 39% similar
- Punk, or why I don't stream anymore surprisetalk · 158 pts · July 10, 2026 · 38% similar
Discussion Highlights (6 comments)
microflash
I’ve found that ch and ex units are heavily influenced by latin characters. They just give weird results with non-latin characters leading to magic numbers. But the concept is really solid: use them if you want the spacing relative to text.
shevy-java
There is no way I will abandon px. In fact, I think CSS made the wrong decision by proliferating so many things, em, %, px, ch, whatever-else. The human brain is not well-equipped to have so many things for basically the same thing. That's a design flaw in CSS, plain and simple. And the author is thus also wrong. There won't be a mass movement of people using "ch". It would be a good first april article though.
rado
Layout shift when the font loads
npn
I also did some experiment with ch many years ago. I found that 60ch is ideal width for block text for easy reading. too bad it is pretty hard to make websites with only 60ch wide.
cynicalsecurity
What happened to em?
somat
What I want to know is who decided to break px, the last thing we need is yet another screwball physical measurement, css was already full of them. But what "tut tut, everybody is using px and these new hi-dpi displays are rendering things really tiny, we can't have that" and now px as a useful unit is ruined. Is there a way to use real pixels? My, admittedly quick, search says no. at least nothing jumps out at me from the spec.