Jump to content

Border just barely off

Go to solution Solved by Ziggy,

Recommended Posts

Hi! 

I wanted to create a simple border around a part of a section. So- to do this, I added a "shape" and colored it tan (the color of the background of my site), then I added a border, using css, to that shape. However, the bottom of the border doesn't align with the shape next to it and even though it's BARELY off, it's driving me crazy. Any tips?

https://whale-glockenspiel-af3h.squarespace.com/

password: writer 

Screen Shot 2023-01-04 at 11.32.48 AM.png

Link to comment
  • Solution

It looks like the border is constrained, so moves the content down by the border width, and then the bottom border protrudes down. You could just add the border to the left side block in the same manner and it should line up. Alternatively you could apply the border to the .fe-block id like this:

.fe-block-yui_3_17_2_1_1672846288110_128722 {
  border: 1.8px solid #d8cc34;
}

Hope that helps!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

@ZiggySorry, I'm still having the same issue 😞 I tried a few things- right now, I've got this code on a section (as opposed to blocks) on my home page:


 

/* BORDER AROUND ABOUT */

section[data-section-id="63b59f38a9ad4a527339de41"] {
  border: 1.8px solid #d8cc34;
}


 

 

but as you can see- the shape in not flush with the border. Any tips?

Edited by kaydotjpg
Link to comment

Try this adjustment:

/* BORDER AROUND ABOUT */

section[data-section-id="63b59f38a9ad4a527339de41"] {
  .page-section .section-border {
    border: 1.8px solid #d8cc34;
  }
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Sorry about that, try without the .page-section:

/* BORDER AROUND ABOUT */

section[data-section-id="63b59f38a9ad4a527339de41"] {
  .section-border {
    border: 1.8px solid #d8cc34;
  }
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • 2 weeks later...

Yep, you need to use "border-top" and "border-bottom" not "top-border", "bottom-border".

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.