How to disable scrolling on the x-axis.

Basically, I've tried everything and haven't been able to disable the scrolling that is happening on the x-axis on this landing page, I will provide the GitHub repo if anyone can figure out what I'm doing wrong, I will be very thankful. https://github.com/nair0501/Minimalistic-website
GitHub
GitHub - nair0501/Minimalistic-website: Creating a minimalistic yog...
Creating a minimalistic yoga studio website . Contribute to nair0501/Minimalistic-website development by creating an account on GitHub.
29 Replies
ἔρως
ἔρως4w ago
https://github.com/nair0501/Minimalistic-website/blob/master/index.html#L107 you have invalid html here
<li>
<a aria-label="facebook" href="#">
<a href="#">
<img src="assets/facebook.svg" alt="Architect">
</a>
</li>
<li>
<a aria-label="facebook" href="#">
<a href="#">
<img src="assets/facebook.svg" alt="Architect">
</a>
</li>
not only you have 2 links, one inside the other, which is very bad, you also only close 1 of the links i don't know if this is what causes whatever behaviour you see, but it is something that needs to be fixed https://github.com/nair0501/Minimalistic-website/blob/master/index.html#L56 you also don't close the video tags.
<video muted loop class="video" src="./assets/pilates.mp4"></vide>
<video muted loop class="video" src="./assets/pilates.mp4"></vide>
the tag <vide> isn't allowed inside <video> and it doesn't exist. which is a misspelling of video, given the context that can cause issues
MarkBoots
MarkBoots4w ago
i actually copied it to this pen, but can't see any overflow/scrolling happening. indeed, the markup indeed has to be corrected. but that doesn't seem to be the issue https://codepen.io/MarkBoots/pen/dyEJGxw?editors=1010
ἔρως
ἔρως4w ago
i can't replicate it too, but these are serious things that need fixing and they can cause issues if the assets load i don't see it causing issues, but, different browsers do things differently sometimes, and it may be a mobile/safari/firefox issue only
MarkBoots
MarkBoots4w ago
yea, sure, absolutely
Mannix
Mannix4w ago
on mobile you can scroll the menu into view I think switching translate to scale would fix the issue
MarkBoots
MarkBoots4w ago
nice catch. there is a overflow-x hidden on the body for the menu indeed.
ἔρως
ἔρως4w ago
that does cause a massive reflow, which isn't good
MarkBoots
MarkBoots4w ago
@nar maybe fork the pen and link it here, so we can look at it. (i will be removing it soon)
Nar
Nar4w ago
First thank you everyone, I should have clarified that the scrolling happens in the mobile version
ἔρως
ἔρως4w ago
on an iphone?
Nar
Nar4w ago
yes
ἔρως
ἔρως4w ago
that's a very important thing to specify
Nar
Nar4w ago
ohh okay, I'm very new, so sorry for any important things that I leave out
ἔρως
ἔρως4w ago
im not rich enough for those devices, so, i can't help you more but as the others said, i can't replicate it as well (the problem may be in the difference of rendering engine: iphones use webkit while chrome uses blink, which is a fork of webkit but has changed a lot through the years)
Nar
Nar4w ago
ἔρως
ἔρως4w ago
yup, you did
Nar
Nar4w ago
okay
ἔρως
ἔρως4w ago
on your iphone, does the codepen have the same issue?
Nar
Nar4w ago
no, I don't have an iPhone, that was the Chrome dev tools on the mobile settings, but it does happen on my android phone as well
ἔρως
ἔρως4w ago
🤔 but you just said it was on an iphone
Nar
Nar4w ago
I meant the Chrome dev tools iPhone view
Mannix
Mannix4w ago
does this fix the issue ??https://codepen.io/MannixMD/pen/mdYpPOd
Jochem
Jochem4w ago
that's not an iPhone view, it's simply a preview of what it would look like in that kind of aspect ratio / size. It's closer to how an android phone with Chrome would render the site, but also not 100% the same, and an iPhone with webkit/safari would have different support for features and different implementations for other featurs, so it can be significantly different.
Nar
Nar4w ago
one minute Okay, let's say it happens for smaller screen sizes, regardless if it's an iPhone or any other phone
ἔρως
ἔρως4w ago
knowing the device and browser is extremely important firefox, chrome and iStuff use different rendering engines, and they have different behaviours with different support for different features and even the operating system is important
Nar
Nar4w ago
can I ask what have you changed? the scale?
Mannix
Mannix4w ago
instead of translate i used scale
Nar
Nar4w ago
I think it did, thank you sooo much
Mannix
Mannix4w ago
:thumbup: