JanRaey Posted March 6, 2023 Posted March 6, 2023 (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 March 6, 2023 by JanRaey
Beyondspace Posted March 6, 2023 Posted March 6, 2023 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 JanRaey 1 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
Beyondspace Posted March 6, 2023 Posted March 6, 2023 My testing 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
JanRaey Posted March 6, 2023 Author Posted March 6, 2023 Hi @Beyondspace, Thanks for your quick response. I've added the code, but the gradient does not seem to have any effect for me...
Solution tuanphan Posted March 8, 2023 Solution Posted March 8, 2023 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment