question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use `ch` and `em` units

See original GitHub issue

In 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:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vadimdemedescommented, May 23, 2019

I’m not convinced by the idea yet, I’ll leave the issue open if someone else has a different angle on this topic.

0reactions
vadimdemedescommented, Sep 26, 2019

Closing due to lack of activity.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found