hansworks Posted March 28 Share Posted March 28 (edited) 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. Edited March 29 by hansworks changed code Link to comment
tuanphan Posted March 31 Share Posted March 31 You mean make this current layout https://playbook-nth.squarespace.com/ to your screen? 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
hansworks Posted April 1 Author Share Posted April 1 Hello Tuanphan- That is correct, I would like to create a solid color border with an inset thin black rule - the image I attached was a quick mockup in photoshop to show what I am trying to achieve. Link to comment
hansworks Posted April 15 Author Share Posted April 15 Just wondering if anyone has a suggestion for this. If it involves too much html, i can live with the plain border I have now. Link to comment
tuanphan Posted April 18 Share Posted April 18 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; } 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; } 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
hansworks Posted April 19 Author Share Posted April 19 Thanks so much for the above. Some strange behaviour is occurring (see screen shots) so I am leaning towards leaving the border square. Link to comment
tuanphan Posted April 22 Share Posted April 22 The header is sticky, so you want to disable sticky header, or remove space between sticky header - top of screen? 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
Solution hansworks Posted April 23 Author Solution Share Posted April 23 Thank you for the explanation. The client wants a sticky headline so I will give the the option to turn that off in exchange for a rounded corner. Thank you for getting me so far along on code for this use and other parts of the website! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment