Jump to content

Add gradient background to specific sections

Recommended Posts

Posted (edited)

Hi! I'm trying to add a gradient background to certain sections on my website, https://madewithindesign.co. The sections end with a rounded divider, and I want everything above that divider to have the gradient but when I try to add some code it only adds it to the actual divider (see image)

The code I've added is the following:

section[data-section-id="663df1440bf95560253a1623"] {
  background: linear-gradient(180deg, #DED8F0, #F5F0E5 );
}

But I want the page to look like the design mockup that I've attached. Can someone help me figure this out, please? The password for my site is 'building'.  

Skärmavbild 2024-05-28 kl. 22.54.12.png

Skärmavbild 2024-05-28 kl. 22.46.10.png

Edited by elsinor
Link to comment
  • Replies 5
  • Views 673
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 5/29/2024 at 6:40 PM, elsinor said:

I removed the password wall now, you should be able to access it through https://madewithindesign.co/home

The code should be

section[data-section-id="663df1440bf95560253a1623"] {
& {
  background: linear-gradient(180deg, #DED8F0, #F5F0E5 );
}
.section-border, .section-background {
    background-color: transparent !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.