How can I achieve a 20% zoom out effect for my web page?

0
0
Asked By CuriousCoder92 On

I'm trying to get the same visual effect that happens when I zoom out my browser window to 80%. I tried using CSS with `transform: scale(0.8);` and `transform-origin: top center;`, but it just squishes everything without adjusting the container sizes. When I zoom out in my browser, the layout and boxes resize, which is what I want. Is there a way to set the page to show at 80% zoom by default?

2 Answers

Answered By JumpyPixel45 On

Did you consider adding a transition? It can smooth out the changes in CSS properties when you scale. It might help with how it looks overall.

Answered By WebWizard99 On

What exactly are you trying to transform? Is it a div or the entire body? Depending on that, the results can vary.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.