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 useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

Link to comment
Posted (edited)

@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

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 useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

Link to comment
  • 2 weeks later...

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.