Jump to content

removing borders in product section of store.

Recommended Posts

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

 

1415484081_ScreenShot2022-10-20at3_26_02pm.thumb.png.d321f555aedb4dd8a2f2a60f9ba535ec.png

 

Edited by daniellofarrell
forgot to add website link
Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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 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

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

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.