daniellofarrell Posted October 20, 2022 Share Posted October 20, 2022 (edited) Hello, I used this CSS code to add a 0.5px border to the bottom of each section in my site. article section:nth-child(n) { border-bottom: solid 0.5px #7F5539; } However, for some reason in my store product section, the border appears three times inside the section (see screenshot) Would someone please show me how to remove these borders? Kind regards, Dan Edited October 20, 2022 by daniellofarrell forgot to add website link Link to comment
daniellofarrell Posted October 20, 2022 Author Share Posted October 20, 2022 https://snail-saxophone-k3pk.squarespace.com/video Here's the website page link! Link to comment
Ziggy Posted October 20, 2022 Share Posted October 20, 2022 Hi Dan, you don't need to use nth-child if you're applying to n (i.e. all) only if you want the CSS to apply to specific items. I would try this Custom CSS instead to add an underline: .products.collection-content-wrapper .grid-item-link { border-bottom: solid 0.5px #7F5539; } 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)☕ Did I help? Buy me a coffee? Link to comment
daniellofarrell Posted October 21, 2022 Author Share Posted October 21, 2022 https://snail-saxophone-k3pk.squarespace.com/video Hi Ziggy, Thanks so much for your help. So I am trying to subtract the three lines that I point to in the screenshot in my first post in this thread. Maybe this could be done if I could somehow excluded the store product section from my general command: article section { border-bottom: solid 0.5px #7F5539; } 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