Jump to content

Linear gradient on homepage with different sections

Go to solution Solved by tuanphan,

Recommended Posts

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
Link to comment
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 (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

My testing

image.thumb.png.259f16b9a771c3f97e453d20997b6e6e.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
  • Solution

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!)

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.