kaydotjpg Posted January 4 Share Posted January 4 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 Link to comment
Solution Ziggy Posted January 4 Solution Share Posted January 4 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 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
kaydotjpg Posted January 4 Author Share Posted January 4 @Ziggyoh, duh! I don't know why I didn't think of adding the same border to the other block *face palm* thank you!! Ziggy 1 Link to comment
kaydotjpg Posted January 6 Author Share Posted January 6 (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 January 6 by kaydotjpg Link to comment
Ziggy Posted January 6 Share Posted January 6 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 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
kaydotjpg Posted January 6 Author Share Posted January 6 @Ziggy I tried the code you provided, but for some reason, the border just disappeared all together. I left the code so you can check it out Link to comment
Ziggy Posted January 6 Share Posted January 6 Sorry about that, try without the .page-section: /* BORDER AROUND ABOUT */ section[data-section-id="63b59f38a9ad4a527339de41"] { .section-border { border: 1.8px solid #d8cc34; } } kaydotjpg 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
kaydotjpg Posted January 9 Author Share Posted January 9 @Ziggy thanks Ziggy, that worked perfectly 🙏 Ziggy 1 Link to comment
kaydotjpg Posted January 18 Author Share Posted January 18 @Ziggy revisiting this- is there a way to do just the top and bottom of the border. I tried with the css coding I thought would work "top-border", "bottom-border", but it doesn't seem to help. Any tips? Link to comment
Ziggy Posted January 18 Share Posted January 18 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 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? 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