HDooley Posted May 10, 2022 Posted May 10, 2022 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.
Solution paul2009 Posted May 10, 2022 Solution Posted May 10, 2022 (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 March 30 by paul2009 JamIsJam88 and tenamoore 1 1 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.
HDooley Posted May 10, 2022 Author Posted May 10, 2022 Thank you! That code worked beautifully! I will also check out that guide though. Thanks again.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment