Viewport units for font sizes destroy zooming
Written by Stefan Judis
- Published at
- Updated at
- Reading time
- 1min
This post is part of my Today I learned series in which I share all my web development learnings.
This will be a very short one... (but I use these posts also to archive things for later reuse).
Today I came across an interessting tweet by Vadim Makeev. He shared that the CSS like font-size: 1vw
will destroy the ability to use ctrl/cmd +
to increase or decrease the font size of the website. He recommends using something like font-size: calc(1vw + 1em);
instead.
Thanks Vadmin for sharing!
If you enjoyed this article...
Join 5.4k readers and learn something new every week with Web Weekly.