Jump to content

Linear gradient on homepage with different sections

Go to solution Solved by tuanphan,

Recommended Posts

Posted (edited)

Hi,

I would like to have a linear gradient on only the homepage of my website, with a seamless transition between sections. I don't want to change the color of the footer. For this, I've used the code below, but now the footer is also impacted, as well as all the other pages.

.page-section .section-border, .section-background { background:transparent !important; }
.site-wrapper{background: linear-gradient(#097770, #3CB08C)!important;}

Thanks in advance for your input.

Website: www.webtailor.be
Password: Webtailor2022

Edited by JanRaey
Posted
2 hours ago, JanRaey said:

Hi,

I would like to have a linear gradient on only the homepage of my website, with a seamless transition between sections. I don't want to change the color of the footer. For this, I've used the code below, but now the footer is also impacted, as well as all the other pages.

.page-section .section-border, .section-background { background:transparent !important; }
.site-wrapper{background: linear-gradient(#097770, #3CB08C)!important;}

Thanks in advance for your input.

Website: www.webtailor.be
Password: Webtailor2022

Try removing your code with the following one

#collection-636508e034a18f7d400d642e main .section-border, #collection-636508e034a18f7d400d642e main .section-background { 
  background:transparent !important; 
}
#collection-636508e034a18f7d400d642e main .site-wrapper{
  background: linear-gradient(#097770, #3CB08C)!important;
}

Support me by pressing 👍 or marking as solution if this is useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

  • Solution
Posted

Try this code

body#collection-636508e034a18f7d400d642e .section-border, body#collection-636508e034a18f7d400d642e .section-background { 
  background:transparent !important; 
}
body#collection-636508e034a18f7d400d642e {
  background-image: linear-gradient(to right, #097770, #3CB08C)!important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.