Jump to content

Adding grid borders to my products

Go to solution Solved by Ziggy,

Recommended Posts

I'm trying to do this exact type of grid on my shop.  I managed to create this code: 

.products.collection-content-wrapper .grid-item-link{

border: 1px solid #000;

border-radius: 0px;

grid-column-gap:0px;

grid-row-gap: 0px;

}

}

.tweak-products-text-alignment-middle .products.collection-content-wrapper .grid-meta-wrapper {

border: 0px solid #000;

border-radius: 0px;

  text-align: LEFT;

   grid-column-gap:0px;

grid-row-gap: 0px;

}

 

 

but It looks so bad... Anyone can help to achieve that exact design? thank you

image.thumb.png.cb5fe1ecb9a9c8a130779ecbaaca7506.png

 

Link to comment

Can you share your website and the page you're working on?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Start with this Custom CSS:

// Shop grid borders
@media screen and (min-width: 768px) {
  .products.collection-content-wrapper .list-grid {
    grid-column-gap: 0vw;
    grid-row-gap: 0vw;
  }
  .custom-filter-container.using-simple-filter.used-css-animation .custom-filter-grid .custom-filter-grid-item {
    padding: 2vw;
    border: 1px solid #000;
  }
  .tweak-products-text-alignment-middle .products.collection-content-wrapper .grid-meta-wrapper {
    border-top: 1px solid #000;
    padding: 2vw;
  }
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

It looks great so far, but there are still a few elements I'd like to tweak. Firstly, I'd like the grid lines to seamlessly integrate from left to right without any gaps and also I want all the borders to have the same width. Here's a screenshot for reference:

For inspiration on achieving this, please take a look at this website: https://thingsyoucanbuy.co.uk/collections/perambulation-bundles

Additionally, I'd like to replicate the style of the product title and price as shown in the screenshot. Thanks

image.png

Link to comment
  • Solution

Try adding this inside the last curly bracket:

.products.collection-content-wrapper .grid-meta-wrapper {
    border-top: 1px solid #000;
    padding: 12px 16px;
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Change:

padding: 2vw;

to

padding: 0vw;

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.