Jump to content

Footer Curved Section Divider Top – Dynamic Background Color

Recommended Posts

Posted

I have created this curved effect at the top of my footer. image.thumb.png.cd82cda7cd6e2e74c1919dfd2b737a6a.png

It works on most pages except ones that have a non-white section above them. 

Does anyone know a way to create a dynamic background color that pulls from the VISIBLE section above?

image.thumb.png.5c9830b96e1ada30ffad19011eb174ac.png

This is my current code:

footer section:nth-child(3) div.section-border .section-background{
  outline:1.5px @black solid;
  border-radius:40px 40px 0 0!important;
}

footer section:nth-child(3){
div.section-border{background:inherit!important;}
}

 

Further context if needed: I have two additional footer sections that are hidden on most pages which is why the native divider of the section above doesn't work. I also tried adjusting the padding + position of the sections to overlap but it created challenges in edit mode + wasn't consistent on every page (probably because sometimes section is in footer and other times in main body?)

 

Website pages in order:
selwyndealers.squarespace.com
selwyndealers.squarespace.com/shop
selwyndealers.squarespace.com/services

  • 4 weeks later...
  • Replies 1
  • Views 689
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.