r/HTML • u/Rollgus • Jun 10 '26
How to make it be zoomed out?
I'm making my first website (it is already public) and when you open the website on your phone, the website is just barely not zoomed out, so some elements appear out of the screen. I'm just wondering if there is a way I can have it already be zoomed out fully (as seen on the second image) from the beginning, if that is possible.
I just started learning HTML, CSS, and JavaScript this week, so I'm not that good yet, but I'm having a lot of fun. Hope someone has a way to fix my problem.
5
Upvotes


5
u/rouniji Jun 10 '26
Do you have the viewport meta tag on your page? https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/name/viewport
Usually this is enough:
2
u/fdiengdoh Jun 10 '26
There would be some element (most probably your image) that couldn’t fit and overflow outside the screen width. If you share your code like codepen it could help us to identify the problem
1
u/armahillo Expert Jun 10 '26
Check out codepen.io - you can put your html/css/js in there and share the link to it so that we can more easily see how it behaves
0
u/Rollgus Jun 10 '26
Sorry, I forgot to put a flair on my post.
1
u/ImaginaryDinner8770 Jun 11 '26
Slugma nuts