DEV Community

Discussion on: The Little Known CSS Unit

Collapse
paceaux profile image
Paceaux

You failed to mention ex which is the fraternal twin to ch.

ex is the height of a lowercase x in the computed font. ch is a width measurement, while ex is vertical. I have found ex useful in ::before and ::after elements when I'm trying to position, space, and size things that need to appear inline. (also, ex combined with ch could be a useful way to size with non-monospace fonts)

Collapse
frontendtony profile image
Anthony Oyathelemhi Author

You can't mention something you've never heard about @paceaux 😏

Thanks for this new knowledge. I'm reading up on it now