Jump to content

Background Gradient Over Multiple Sections

Go to solution Solved by Ziggy,

Recommended Posts

Site URL: https://rabbit-minnow-8knw.squarespace.com/

We are trying to set up a continuous background gradient across multiple sections. 

 

We are currently using this code, but the gradient does not continue across the sections:

#collection-60b9dadbc8f89f0d0d502b31{   
  .page,.section-background {
  background: transparent; background: linear-gradient(145deg, #3366ff, #00ff66)
  }
}

 

You can see the website here: https://rabbit-minnow-8knw.squarespace.com/

 

You can see how the gradient is intended to work here: https://web.archive.org/web/20220919052414/https://www.ayac.org.au/

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

Hi @James_9848, this is what you need:

#collection-60b9dadbc8f89f0d0d502b31 {   
  .section-background {
    background: linear-gradient(145deg, #3366ff, #00ff66);
    background-attachment:fixed;
  }
}

Let me know if this has worked.

Please like and upvote if my comments were useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

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