HDooley Posted May 10, 2022 Share 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. Link to comment
Solution paul2009 Posted May 10, 2022 Solution Share 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 About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. Link to comment
HDooley Posted May 10, 2022 Author Share Posted May 10, 2022 Thank you! That code worked beautifully! I will also check out that guide though. Thanks again. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment