how to get the same effect as browser zoom/unzoom in css natively
so it looks like this on 100% zoom but i wanna get it to how it looks like in the 80%
4 Replies
decrease the font sizes and element dimensions
Basically you need the size of elements to scale with the screen. For that you must avoid using constant units as much as possible.
For images as an example, give them width in % and height auto, control them through aspect-ratio and object-fit
for fonts make use of clamp()