We have a strange problem here. We have a website that has worked well since several years. A few months ago, Firefox began to scale the page depending on user DPI settings in its operating system.
The problem is that, by default, the DPI scale is set to 125% (in our country) in Windows 7, and every visitor using Firefox sees the page scaled. Anyway, Internet Explorer and Safari are now doing the same thing, and I think chrome will follow.
The hard part: when I open the page, I see the correct layout. If I check the zoom level of the browser, it will tell me 100%. When I open the same page with firefox or Internet explorer, everything increases (increases) by 25%. If I check the zoom level in the browser settings, it says 100%. If I zoom out twice (up to 80%), I see the original layout.
Is there an easy way to set the default zoom / zoom scale by CSS, JavaScript, or perhaps a title tag?
Here are some screenshots to explain my problem a bit.
This is the correct layout that has been used in recent years. The page is in the center and there is a bit of background on the left and right
In Firefox, IE, and Safari, the same page on the same computer looks like this. It is enlarged, you do not see the background, and you see a little less than the entire content.
So now my question is: what can I do to make the same page look the same on different computers when it comes to scaling. I know that several things always differ, but the scale should be the same.
Edit:
Always scale the page with transform: scale (.75); transfor-origin: 100%; 0; Itβs not always suitable, because if a user with a 100% DPI setting visits the page, for him everything is minimized. I canβt always scale the page. I need to somehow determine if the user set his operating system to 100% or 125% DPI scaling.
Edit:
Yes, it is possible to determine the set scale. At least for my setup it works now. I am adding a screenshot with two browsers open on the same computer (top chrome, bottom layer of firefox) to see the difference (and a problem that should be seriously fixed by someone).
