Viewport units for font sizes destroy zooming

1 min read

This post is part of my Today I learned series in which I share all my learnings regarding web development.

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!

Load time