Account Deleted
I feel you. I was gonna use vw as well but then I found out that it breaks zooming. If you use ctrl + scroll wheel things won't change their size because they're proportional to the viewport. If you have to use vw or vh the only way to not break zooming is to use them in calc()
. E.g. calc(10vw - 1px)
which will calculate the amount of pixels in 10vw and subtract 1 pixel so you'll get something close to 10vw but in pixels. Though I recommend using rems instead of pixels.
Marked as helpful