+ 1
Whatâs the best way to scale things proportionally while zooming in and out on a web page?
Iâve read many threads and guides saying that creating a wrapper or a container that envelopes every visible element on the page is the best way to handle this issue. I tried a few times but it doesnât seem to work, so Iâm probably missing something. Not only elements donât maintain the same aspect ratio, but they even overlap at some point, making it impossibile to distinguish them. Some websites even make it so that the element you zoom into is not stretched at all. Is it simple to replicate this effect?
1 Answer
0
by using vector drawing instead of image file or canvas.
for example, svg, css borders.