r/HTML • u/venum_GTG • 20d ago
Question How do I zoom in without breaking it?
For whatever reason -- and I've searched for hours on YouTube and Google -- I can't seem to fix this. Nothing has helped at all. I just want to zoom in and have nothing move, absolutely nothing. It just zooms into the text/images. That's all.
I'm very new at this, I started last night.
4
Upvotes


5
u/JKaps9 20d ago
Hard to say exactly without seeing the code. However, make sure you have this in your head tag: https://www.w3schools.com/css/css_rwd_viewport.asp
2
u/reff678 20d ago edited 20d ago
The issue here is not about zooming. It's about how the page responds to different screen sizes/formats. If you resize your browser window, it would be the same problem again. A quick fix would be to specify the width you want the page to have regardless of the screen:
body { width: 1900px; }
(or whatever you want it to be)
However, this is usually not desirable, as it doesn't work well with all the different devices and screens. Instead, look into responsive web design to make the page work on every screen (and zoom).
https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/CSS_layout/Responsive_Design
1
u/testingaurora 20d ago
Breaking zoom is inaccessible. Its so frustrating when you try to zoom in on a page and nothing gets bigger or magnified.
1
u/armahillo Expert 20d ago
Whats the reason for zooming? are you wanting to make the text bigger / more readable? or is there some other reason?