Jump to content

Add SVG or PNG Section Border

Recommended Posts

I'm trying to add a border between sections on my site. Ideally this would be done with an SVG mask, but I settled for trying with a PNG image instead. This is where I'm at right now: 

[data-section-id="63deaf31f73bb003a7fce3df"] {
  overflow: visible;
  
  &:before {
    content: '';
    width: 100%;
    height: 100%;
    background-image: url(https://static1.squarespace.com/static/63da9ac5c9844e3c54f8abd2/t/63deac4ef73bb003a7fc7b5e/1675537486671/Raven+Flower+Torn+Paper+Up.png);
    position: relative;
    background-repeat: no-repeat;
    background-position: top;
    top: -20px;
    margin-top: 1px;
    pointer-events: none!important;
    z-index: 101;
  }
}

Nothing I do seems to be selecting the section. Even if I just try to set the background color of the section, it's not working. 

The PNG linked above should be placed before the targeted section, therefore displaying on top of the banner image. 

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.