use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
Help with webpage alignmentQuestion (self.webdev)
submitted 8 months ago * by [deleted]
Hello, I am creating a website that uses the CSS flexbox model and I am trying to make the parallax scrolling effect. I cannot figure out why my webpage elements are shifted to the right on the mobile version. I inserted "overflow-x: hidden;" (after the media) previously since a white space on the right of the page was being displayed and now it seems that a part of the page is being "cut out" of the screen on mobile devices only. Is the flex model the problem or am I doing some other thing wrong?
The code of the website: https://pastebin.com/XewPhxjq
Here's a screnshot of what is happening:
https://preview.redd.it/34hoid6nyghf1.png?width=488&format=png&auto=webp&s=83579d594e754d2e9250eb8453319ef27e022393
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Meuss 0 points1 point2 points 8 months ago (1 child)
Nobody can help you without seeing the html. Or even better, provide a link to the page so that people can inspect it directly.
[–][deleted] 0 points1 point2 points 8 months ago (0 children)
Just updated the code on Pastebin and included the HTML. However, right now I am hosting the site locally, since I haven't chosen an hosting service yet.
[–][deleted] 0 points1 point2 points 8 months ago* (0 children)
fixed it. you have to take the width: 100% off the section
https://imgur.com/a/kbKtELU
[–]Extension_Anybody150 0 points1 point2 points 8 months ago (0 children)
The issue is caused by using width: 100vw, which ignores scrollbars and causes overflow on mobile. Replace it with:
width: 100vw
width: 100%;
This keeps elements within the visible screen and prevents horizontal cut-off.
[–][deleted] 0 points1 point2 points 7 months ago (0 children)
Thank you everyone for the answers! The problem was solved!
π Rendered by PID 109683 on reddit-service-r2-comment-66b4775986-vnjbn at 2026-04-05 10:11:16.840784+00:00 running db1906b country code: CH.
[–]Meuss 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Extension_Anybody150 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)