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
kdiffin
kdiffinOP2y ago
kdiffin
kdiffinOP2y ago
erik.gh
erik.gh2y ago
decrease the font sizes and element dimensions
Abuzeid
Abuzeid2y ago
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()
Want results from more Discord servers?
Add your server