Forum Moderators: not2easy

Message Too Old, No Replies

Autozooming for screens above 1800px

         

IJustWanttoPost

10:41 pm on Aug 1, 2025 (gmt 0)

Top Contributors Of The Month



Hi,

When I view my website using a big monitor, there's a bunch of space on the left and right that isn't being used.

If I try to make my website 100% of the width, it messes my layout up..

I made this rule and it seems to make my website look way better:

@media screen and (min-width:1800px){
body {zoom:1.15}
}
@media screen and (min-width:2000px){
body {zoom:1.25}
}
@media screen and (min-width:2200px){
body {zoom:1.35}
}
@media screen and (min-width:2400px){
body {zoom:1.45}
}
@media screen and (min-width:2600px){
body {zoom:1.55}
}
@media screen and (min-width:2800px){
body {zoom:1.65}
}


I can't really find any informatoin about 'autozooming wide screens using css' by search or anything, so I thought I would post it here.

Is something like this a good idea? What are your thoughts?

Thanks for reading!

lucy24

12:09 am on Aug 2, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hm. It would really depend on the user, wouldn't it. If you have a wide monitor because your eyesight isn't what it used to be, you might really appreciate it. But if you have a wide monitor because you want to look at lots of things all at the same time (though I shudder at a browser window set for 3000px unless you are watching a video), it might be an annoyance.

not2easy

12:31 am on Aug 2, 2025 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Is there a separate CSS file file for mobile users?

tangor

5:13 am on Aug 2, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



First question is: Do you NEED that unused space?
Second question: Does zoom make it look like a cartoon?

At some point exploding the size of READABLE fonts simply turns into a billboard for a side show.

Might need some testing to see how that zoom works on systems where the USER has already enlarged the system font for personal reasons.

IJustWanttoPost

6:32 am on Aug 2, 2025 (gmt 0)

Top Contributors Of The Month



Hm. It would really depend on the user, wouldn't it. If you have a wide monitor because your eyesight isn't what it used to be, you might really appreciate it. But if you have a wide monitor because you want to look at lots of things all at the same time (though I shudder at a browser window set for 3000px unless you are watching a video), it might be an annoyance.
With that query.. if you resize the window.. the zoom goes away and it goes back to normal... and then all the css mobile rules start going into effect if you start resizing even smaller...

Is there a separate CSS file file for mobile users?
There can be. I think this zoom is only for websites that have the traditional 1200px width layouts that have maybe even done a few tweeks and optimizatoins already for 1800px screens - can now go up another 1,000 pixels or so?

First question is: Do you NEED that unused space?
Second question: Does zoom make it look like a cartoon?
I think the main problem is with IMAGES. If you have an image heavy website it can make those look 'out of focus", but if you use srcset="" on your images with images for 2x image quality - that shouldn't be an issue...

Might need some testing to see how that zoom works on systems where the USER has already enlarged the system font for personal reasons.
That's what I wonder.. It looks so awesome and I wonder - why has nobody done this? What am I missing? To me, everything looks good and it is a better user experience.

I almost wonder like.. shouldn't this be part of the browser? And then I can click like 'go out of 2k mode' or something?

Please see Charter [webmasterworld.com]

[edited by: not2easy at 12:09 pm (utc) on Aug 2, 2025]
[edit reason] Formatting [/edit]

IJustWanttoPost

6:34 am on Aug 2, 2025 (gmt 0)

Top Contributors Of The Month



I almost wonder like.. shouldn't this be part of the browser? And then I can click like 'go out of 2k mode' or something?

Sorry I can't edit my post.. I feel like instead of guessing at the zoom: 1.25 etc. etc.. there is a "match equation" that will give the websites the best "pixel densiity" or something to that effect?

[edited by: not2easy at 12:08 pm (utc) on Aug 2, 2025]
[edit reason] Formatting [/edit]

tangor

7:38 am on Aug 2, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Looking at the two examples above the best I can say is you get LESS information on page zoomed (bigger pictures, of course) and a less satisfying user information experience. This might fall into the category of "just because we can, should we?"

not2easy

12:16 pm on Aug 2, 2025 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hi IJustWanttoPost and again, welcome to WebmasterWorld [webmasterworld.com]

That Welcome link - and the CSS Charter [webmasterworld.com] - can really be helpful. You can certainly edit your post, find out how at that Welcome link.

IJustWanttoPost

3:40 pm on Aug 2, 2025 (gmt 0)

Top Contributors Of The Month



Hi Not2Easy,

I tried to edit but it says 'error : 7: please login to edit.Missing Post Body Post too small
Not your post to edit.'

Hi Tangor,

"Looking at the two examples above the best I can say is you get LESS information on page zoomed (bigger pictures, of course) and a less satisfying user information experience. This might fall into the category of "just because we can, should we?""

Yes, that's what I wonder as well. Looking for more thoughts and inspiration.

The white spaces on the websites kindove seems pointless to me..

WIth the upgrade from 1080P to 1440P, the increase for screen height is 50% taller and only like 20% for the width... So in theory, the zooming is still more height than 1080P?

1080p = 1920x1080
1440P = 2560x1440

Maybe this should even be a "Windows thing"? To minimize windows, maximize and '2k maximize' ? I think it woulod be awesome.

Anyway, thanks for reading. Would love to hear all the bad reasons why this is not a good idea. Thanks!

IJustWanttoPost

4:13 pm on Aug 2, 2025 (gmt 0)

Top Contributors Of The Month



More benefits of Zoom vs the traditional make text bigger etc.

It's also one of my "main questions". With zoom, ads get bigger too...

That means a 300x250 unit at 1.4 zoom becomes a 420x350.

Thoughts?

lucy24

4:44 pm on Aug 2, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No thoughts about ads, but I hope you have a max-width set in ems, not pixels. That way, there will always be the same amount of text in a line, regardless of user’s font settings. And of course, ahem cough-cough, you don’t set an explicit point size.

IJustWanttoPost

10:22 pm on Aug 2, 2025 (gmt 0)

Top Contributors Of The Month



Hi Lucy,

Yes, I do use a max-width.

I think most users do use the Ctrl + or ctrl Mousewheel to zoom in etc... but using Zoom to automatically do that.... seems better.. unless I am missing something?

've been "testing" websites all day... It's like "once you have the full width, you cannot go back".

<snip> Please see Charter [webmasterworld.com]

Wouldn't it be cool for Chrome to automatically do this somehow using some math to give websites the best zoom pixel density ?

[edited by: not2easy at 10:29 pm (utc) on Aug 2, 2025]
[edit reason] no examples please, see Charter. [/edit]

IJustWanttoPost

11:03 pm on Aug 2, 2025 (gmt 0)

Top Contributors Of The Month



Sorry that I cna't update my post but I wanted to add one more thing because I think some will say "why don't you zoom in with Chrome settings to 140%"?

I use the screens with a 2/3rd window, meaning I have roughtly a

1700 width and a 850 wide screen... allowing me to "Maximize" to a full 2560 resultion...

by defaulting the "zoomed in chrome" settings, it distorts the 1700width screen and makes it much harder to use more than 1 window.

ANyway, thanks for reading will check back later.

lucy24

11:20 pm on Aug 2, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It's like "once you have the full width, you cannot go back".
Do you mean that if you resize the window, the zoom settings in the @media rules don’t change? In all browsers? Well, that’s disheartening.

tangor

5:04 am on Aug 3, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Personally, I use browser zoom but set the default action to TEXT ONLY, leaving images unchanged. Never use full screen browser....

IJustWanttoPost

4:22 pm on Aug 3, 2025 (gmt 0)

Top Contributors Of The Month



"Do you mean that if you resize the window, the zoom settings in the @media rules don’t change? In all browsers? Well, that’s disheartening."

No, I mean once I go from 2/3 window to a full screen, currently most websites "stay the same". Meaning,, there is no change from 2/3 viewport on screen vs a full page... the full page only has more spaces on the sides.


"Personally, I use browser zoom but set the default action to TEXT ONLY, leaving images unchanged. Never use full screen browser...."

You can do that? I will have to look more at that! Thanks!

-- reason of posting ---

Here is something i've figured out since posting. The css rules should NOT be applied to the body because it affects the default zoom of the browser. By adding the zoom to the first parent element in your small viewport, it solves this issue and allows the user to still zoom or zoom out regular.

lucy24

4:52 pm on Aug 3, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No, I mean once I go from 2/3 window to a full screen, currently most websites "stay the same".
How wide is your screen? The @media rules quoted in the first post top out at 2800, so it ought to keep adjusting until you hit that level. But have a closer look at your browser prefs; there may be a maximum-zoom setting with some default value.

I just checked my system (not browser) settings. I'd actually forgotten that, in addition to zooming within the browser, you can also change your overall monitor resolution. I'm at the default, but if need be I can crank it up to 800x600 like my very first color monitor. No option for 512x384, alas.

Currently I'm inclined to think it can safely be left to the user. Given a choice, I'd rather have slabs of white space to either side, than text running full-width across the entire browser window with not even a margin, as seen in older sites that haven't yet come to grips with the fact that this is not your mother's screen resolution.

Oh, and I hope your background isn’t literally white. It’s more restful if you set it to something like a very light gray. Yes, I take this too far on my own site, but that’s a different thread. The present site, for example, is #FAFAFA.

tangor

12:08 am on Aug 4, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



APPARENTLY there are a LOT of variables in this (made me look) and found this from 2017 which outlines quite a few (among which is the browser has a LOT to do with usability). Due to ACCESSIBILITY requirements by many governments, etc., some things are DIFFICULT to change as that defeats the purpose of accessibility. There are, however, several cute/interesting things that can be done with zooming.

NONE of which I would ever use on a web site. Just me!

[css-tricks.com...]

Meanwhile, some browsers do not support this kind of css scaling so that's another reason why I won't use it.