janafisher Posted November 13, 2020 Share Posted November 13, 2020 Site URL: https://circle-perch-tjz7.squarespace.com/ I set up custom background CSS in 7.1 to better control background image display. On all my devices, the background covers the entire available window on desktop as it is supposed to. However, the client sees a gray bar (perhaps the footer?) at the bottom of many pages (see screenshot). I cannot replicate the issue to know how to fix it. Website: https://circle-perch-tjz7.squarespace.com/ Password: sylvie Here is an excerpt of my CSS to show how I'm handling backgrounds. What am I missing? html { margin: 0px; height: 100%; width: 100%; } body { margin: 0px; min-height: 100%; width: 100%; } //Home page background image [data-section-id="5f1626aa2c989e153c61709b"]{ .section-background{ &::after { //creating the element content: ""; min-height: 100%; min-width: 100%; position: absolute; overflow:hidden; //adding the image background:linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(https://images.squarespace-cdn.com/content/v1/5f162629116ffb55fd39047b/1597376721865-I6N76XU9FTUT2G1AUA1B/ke17ZwdGBToddI8pDm48kNkDGXY7AXqwLIWET4ImKlUUqsxRUqqbr1mOJYKfIPR7LoDQ9mXPOjoJoqy81S2I8N_N4V1vUb5AoIIIbLZhVYxCRW4BPu10St3TBAUQYVKcF09kKCraTKS-JXnG8fhU-45lhBCEWgFGgVsOAz0fbLadd2IWWcjtxmbrxzKBL8hL/sylviebg-Home.jpg) no-repeat; //positioning the image background-position:center center; background-attachment: fixed !important; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; //Home page mobile background @media(max-width:787px){ background:linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(https://images.squarespace-cdn.com/content/v1/5f162629116ffb55fd39047b/1597727139192-IGUVEZU8U3DIMSYPBVJV/ke17ZwdGBToddI8pDm48kPoswlzjSVMM-SxOp7CV59BZw-zPPgdn4jUwVcJE1ZvWQUxwkmyExglNqGp0IvTJZamWLI2zvYWH8K3-s_4yszcp2ryTI0HqTOaaUohrI8PI7Hk5b7wKtplcrxPf3ag-g6VC0ObVEO8cEICumLtlwuA/sylviebg-Home-mobile.png) no-repeat; background-size: 100% !important; background-position:top center; background-attachment: scroll !important; } } } } footer {display:none;} #footer-sections { display: none; } footer.sections { display: none; } Link to comment
Beyondspace Posted November 13, 2020 Share Posted November 13, 2020 (edited) html { margin: 0px; height: 100%; width: 100%; } body { margin: 0px; min-height: 100%; width: 100%; } //Home page background image section[data-section-id="5f1626aa2c989e153c61709b"] { min-height: 100vh !important; } [data-section-id="5f1626aa2c989e153c61709b"]{ .section-background{ &::after { //creating the element content: ""; min-height: 100%; min-width: 100%; position: absolute; overflow:hidden; //adding the image background:linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(https://images.squarespace-cdn.com/content/v1/5f162629116ffb55fd39047b/1597376721865-I6N76XU9FTUT2G1AUA1B/ke17ZwdGBToddI8pDm48kNkDGXY7AXqwLIWET4ImKlUUqsxRUqqbr1mOJYKfIPR7LoDQ9mXPOjoJoqy81S2I8N_N4V1vUb5AoIIIbLZhVYxCRW4BPu10St3TBAUQYVKcF09kKCraTKS-JXnG8fhU-45lhBCEWgFGgVsOAz0fbLadd2IWWcjtxmbrxzKBL8hL/sylviebg-Home.jpg) no-repeat; //positioning the image background-position:center center; background-attachment: fixed !important; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; //Home page mobile background @media(max-width:787px){ background:linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(https://images.squarespace-cdn.com/content/v1/5f162629116ffb55fd39047b/1597727139192-IGUVEZU8U3DIMSYPBVJV/ke17ZwdGBToddI8pDm48kPoswlzjSVMM-SxOp7CV59BZw-zPPgdn4jUwVcJE1ZvWQUxwkmyExglNqGp0IvTJZamWLI2zvYWH8K3-s_4yszcp2ryTI0HqTOaaUohrI8PI7Hk5b7wKtplcrxPf3ag-g6VC0ObVEO8cEICumLtlwuA/sylviebg-Home-mobile.png) no-repeat; background-size: auto 100%; background-position:right center; background-attachment: scroll !important; } } } } footer {display:none;} #footer-sections { display: none; } footer.sections { display: none; } I think she mentioned about this issue when screen is resize, I updated the code above Edited November 13, 2020 by bangank36 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you 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