Use `ch` and `em` units
See original GitHub issueIn CSS ch
and em
units are more focused on the actual characters size, being em
the equivalent width to a minuscule m
char, and ch
the advance of a character, both vertical or horizontal, that means in normal conditions ch
is equal to one em
in horizontal and two em
in vertical. For a monospace font (like a terminal TTY), that means that both ch
and em
are equal. Taking in account that CSS spec has defined a grid
media for monospaced output like TTYs, braille readers and so, it makes totally sense to use both ch
and em
units as base ones for Ink
project… I already did some conversion works in the units repo.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
CSS Unit Guide: CSS em, rem, vh, vw, and more, Explained
While the ch unit works as an exact measurement for monospaced / fixed width fonts like Courier, it can be unpredictable with proportional...
Read more >CSS: em, px, pt, cm, in… - W3C
CSS offers a number of different units for expressing length. ... It's better to use relative units, such as em , instead.
Read more >Units - Every Layout
While the units em , rem , ch , and ex are all measurements of text, they can of course be applied to...
Read more >rem vs em Units in CSS | DigitalOcean
A brief look at perhaps the two most popular relative units in CSS: em and rem. From this post you'll finally grasp what...
Read more >The difference between CSS units (px, pt, rem, em, vh, vw, ch ...
Note, that ch and ex will change with the font you are using. Viewport Units. Viewport units are relative in their nature as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m not convinced by the idea yet, I’ll leave the issue open if someone else has a different angle on this topic.
Closing due to lack of activity.