Viewport units for font sizes destroy zooming
- 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!
Was this TIL post helpful?
Yes? Cool! You might want to check out Web Weekly for more quick learnings. The last edition went out 15 days ago.
Yes? Cool! You might want to check out Web Weekly for more quick learnings. The last edition went out 15 days ago.