Jump to content

Add gradient to the background in certain sections

Recommended Posts

Hi! I'm trying to add a gradient background to certain sections on my website, https://madewithindesign.co/home. 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). When the page is loading after I refresh it, I can see that the gradient is there in the background but it's as if it's hidden under the default color/background settings.

The code I've used is the following:

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

I want the page to look like the design mockup that I've attached.

Can someone help me figure this out, please?

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

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

Link to comment
  • Replies 2
  • Views 594
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Try this code

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