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
paul2009 Posted May 10, 2022 Share Posted May 10, 2022 19 minutes ago, 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. html, body { overflow-x: hidden; } Was this post helpful? Please give feedback by clicking an icon below ⬇️ About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. 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