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
ἔρως
ἔρως6mo 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
MarkBoots6mo 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
ἔρως
ἔρως6mo 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
MarkBoots6mo ago
yea, sure, absolutely
Mannix
Mannix6mo ago
on mobile you can scroll the menu into view I think switching translate to scale would fix the issue
MarkBoots
MarkBoots6mo ago
nice catch. there is a overflow-x hidden on the body for the menu indeed.
ἔρως
ἔρως6mo ago
that does cause a massive reflow, which isn't good
MarkBoots
MarkBoots6mo ago
@nar maybe fork the pen and link it here, so we can look at it. (i will be removing it soon)
Nar
NarOP6mo ago
First thank you everyone, I should have clarified that the scrolling happens in the mobile version
ἔρως
ἔρως6mo ago
on an iphone?
Nar
NarOP6mo ago
yes
ἔρως
ἔρως6mo ago
that's a very important thing to specify
Nar
NarOP6mo ago
ohh okay, I'm very new, so sorry for any important things that I leave out
ἔρως
ἔρως6mo 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
NarOP6mo ago
ἔρως
ἔρως6mo ago
yup, you did
Nar
NarOP6mo ago
okay
ἔρως
ἔρως6mo ago
on your iphone, does the codepen have the same issue?
Nar
NarOP6mo 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
ἔρως
ἔρως6mo ago
🤔 but you just said it was on an iphone
Nar
NarOP6mo ago
I meant the Chrome dev tools iPhone view
Mannix
Mannix6mo ago
does this fix the issue ??https://codepen.io/MannixMD/pen/mdYpPOd
Jochem
Jochem6mo 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
NarOP6mo ago
one minute Okay, let's say it happens for smaller screen sizes, regardless if it's an iPhone or any other phone
ἔρως
ἔρως6mo 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
NarOP6mo ago
can I ask what have you changed? the scale?
Mannix
Mannix6mo ago
instead of translate i used scale
Nar
NarOP6mo ago
I think it did, thank you sooo much
Mannix
Mannix6mo ago
:thumbup:
Want results from more Discord servers?
Add your server