Jump to content

7.1 background cover issue

Recommended Posts

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;
  }

 

Screen Shot 2020-10-14 at 2.24.53 PM.png

Link to comment
  • Replies 1
  • Views 873
  • Created
  • Last Reply
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

image.thumb.png.835a57525b1f633a86d588ce0aaf533a.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.