Jump to content

On mobile, How to get rid of Horizontal scroll

Recommended Posts

  • 5 months later...
On 11/17/2019 at 8:27 PM, kakers said:

Did that work for you? That did not work but when we added the code below it worked only it made a black box show up over our mobile navigation menu.

  html, body {overflow-x: hidden;}

@media screen and (max-width:640px) {
.row.sqs-row {
    margin-left: 0;
    margin-right: 0;
  }
}

On 11/17/2019 at 8:27 PM, kakers said:

 

My client's website is growthleadersgroup.com

There is a left/right shift on mobile where you can basically grab the screen and move it left or right and then it will spring back when released. a horizonal scroll?

I cannot figure this out!

 

 

Edited by theresa.southern
Link to comment
  • 10 months later...
  • 3 months later...
On 3/20/2021 at 5:25 AM, AkankshaK said:

Has any one found a solution to this please? @tuanphan I tried your code but it did not resolve. 

This is what works for me.  

 

//stop horizontal overflow

body {
 overflow-x:hidden;
 overflow-y:visible;
}

@media screen and (max-width:640px) {
 .Site {
  overflow-x:hidden;
  overflow-y:visible;
 }

}

Link to comment
  • 1 month later...
On 9/6/2021 at 8:30 AM, powerhouseoutletmedia said:

Hello, can someone help me with this please? On my desktop everything is fine. On mobile, it is not. Please help. 

powerhouseoutletmedia.com

PHOmedia

Try adding to Design > Custom CSS

@media screen and (max-width:767px) {
	html, body {
		overflow-x: hidden;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 4 months later...
On 1/26/2022 at 12:41 PM, kakers said:

this worked:

@media screen and (max-width:767px) {
html, body {
    overflow: hidden;
}}

This code will disable scroll on all pages on mobile, you should check again.

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
On 2/11/2022 at 6:50 AM, sharine said:

Does anyone know how to do this for just one page on mobile and not all?

Add to Page Header

<style>
  @media screen and (max-width:767px) {
	html, body {
		overflow-x: hidden;
}
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 years later...
On 3/9/2024 at 5:10 AM, BONICA said:

Hello, I am having this issue as well @tuanphan can you please advise? 

 

Site is not live yet 

image.png.2034531caeb1ffb07bca1d84b21774f4.png

You can use this code to Website > Website Tools > Custom CSS

.products.collection-content-wrapper .nested-category-children {
    overflow: hidden !important;
}

if it doesn't work, you can share site url, I can check easier

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.