Jump to content

Extra Space On Right Side - Mobile View

Go to solution Solved by paul2009,

Recommended Posts

Posted

Site URL: http://www.hannahdooley.com

Hi - I am having an issue with the mobile view of my website. If you are viewing the home page or contact page (it only does it for the home page and contact pages) on your phone, and scroll to the right, the whole page moves over and there is a blank space to the right of the page that runs all the way down the screen. I know this has something to do with the coding I found on the internet that allows me to have a banner that scales rather than get cropped. The coding worked great except for this one issue!

Anybody know how I can fix this without getting rid of the coding I used for the banner?

Thanks for any help.

HannahDooleyCoding.jpeg

HannahDooleyHomePageRightSideGap.jpg

  • Solution
Posted (edited)
On 5/10/2022 at 7:29 PM, HDooley said:

I am having an issue with the mobile view of my website. There is a blank space to the right of the page that runs all the way down the screen. I know this has something to do with the coding I found on the internet

This will happen if your CSS causes elements to "overflow" outside of the site "container". You can usually hide this overflow by adding the following to Design > Custom CSS but bear in mind that it is only hiding the issue - it is not fixing it. You can find out more about overflow-x in this guide.

For a more permanent fix, you can check through each line of custom code to see if it is causing the issue.

body {
  overflow-x: hidden;
  overflow-x: clip !important;
}

Was this post helpful? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

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.