Hello!
I had a dispute with a friend: what is better vw and vh or @ media requests ?
I argue that vw and vh can and should be introduced into the development of the site because these values ​​help the site adjust to any screen resolutions. That's why I decided to create a mini-site where these values ​​will be everywhere.
div { width: 25vw; height: 25vh; font-size: 5vw; background-color: black; color: white } <div> DiV </div> They scale blocks for all screen resolutions, while maintaining the normal arrangement of blocks (both on large screens and small ones). And @media not convenient because you need to manually specify all the dimensions, which should not be devices. For all the same, you never know from which device the user will enter.
My friend claims that @media better, because The technique is quite resistant, it is used on many sites and devices, and it does an excellent job of adjusting it. And vw и vh useless thing, which in principle is not needed at all. Why are they, if you can adjust using @media ?
So what is better to use vw and vh or @media in adjusting the site for different screens?