Jump to content

Rounded section divider

Go to solution Solved by qosmic,

Recommended Posts

You can flip and invert those section borders, but there is not a setting that can round the point. It's possible to add that, but you need a custom clip path that creates the desired shape and you need too apply it to the section border in question with CSS.

You might be able to get the clip path with clippy: https://bennettfeely.com/clippy/

 

Link to comment
  • 2 weeks later...
On 4/19/2023 at 3:59 AM, qosmic said:

You can flip and invert those section borders, but there is not a setting that can round the point. It's possible to add that, but you need a custom clip path that creates the desired shape and you need too apply it to the section border in question with CSS.

You might be able to get the clip path with clippy: https://bennettfeely.com/clippy/

 

Hi, thank you for this tool. I have my own clip path. Do you have an idea, how to apply it to the section border (CSS)?

Link to comment
  • Solution

You'll have to learn some CSS. You can use the following, but you'll have to customize it.

#CollectionID { 
  #page .page-section:nth-of-type(1) { 
    -webkit-clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
    clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%); 
  } 
}

The collection ID is unique to the page. Under nth-of-type, you tell the browser which section on the page to apply the clip path. FOr example, if it's the third section on that page, you would put nth-of-type(3).

Finally, replace the percentages with your clip path.

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.