Jump to content

Extend border to both edges

Go to solution Solved by Web_Solutions,

Recommended Posts

  • Replies 3
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution
Posted
1 hour ago, Avenue43 said:

I am trying to get the border I have added to top of related products to extend all the way to the edges.

 

site: https://marigold-aqua-rwmn.squarespace.com/

Screen Shot 2023-10-23 at 11.02.14 PM.png

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

[data-section-id="652dc6ae891148306eb297de"] {
    overflow: hidden;
}
[data-section-id="652dc6ae891148306eb297de"] .products.collection-content-wrapper .ProductItem-summary {
    position: relative !important;
}
[data-section-id="652dc6ae891148306eb297de"] .products.collection-content-wrapper .ProductItem-summary:after {
    content: "";
    position: absolute;
    width: 100vw;
    height: 2px;
    background: #000;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

 

Screenshot_302.png

Screenshot_303.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

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.