Jump to content

Rounded border with only inside of border rounded.

Go to solution Solved by hansworks,

Recommended Posts

Hello!
https://playbook-nth.squarespace.com/ PW NTH2024#

Very little code experience so hoping someone could help me. I have managed to achieve rounded border bot on the outside not inside. The below works well because it scales between mobile and desktop. From my searches looks like the solution might have to use hml:

//Add Site Border to 7.1
body:not(.sqs-edit-mode-active) {
  &, #header {
    border: clamp(12px,3.5vw,80px)             solid #6789D3;     
        border-radius: 3.5vw;
  }
  #header { border-bottom: none; }
}

I want the border rounded only on the inside. I am trying to add a differnt color stroke around this inside border (see screenshot). I would like the option to have this border sitewide for now, but also may need to make each page on the site a diffent color. Thanks in advance for your support.

round corners.jpg

Edited by hansworks
changed code
Link to comment
  • 2 weeks later...

Don't remove any code in your current code. Use this CSS code for header

header#header div, header#header {
    border-top-left-radius: 30px !important;
    border-top-right-radius: 30px;
    border-top: unset !important;
}
header#header {
    top: 30px;
}

image.thumb.png.7773e79866bf88c63785e81622e7e1c8.png

With Footer, use this CSS code

footer#footer-sections, footer#footer-sections div {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}
body {
    background-color: #6789d3;
}

image.thumb.png.fdb75338d1fe028ca664fcd60cec55bc.png

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.