Jump to content

Product Rows - same height using CSS

Recommended Posts

Hi! 

I'm building a client site and am trying to get the height of each item in a row to be the same, so when the "sale" flag is active, it will appear at the same level as other's in the row that may also be on sale. 

URL to check out: https://burlybottomdesigns.squarespace.com/shop/cum-rags-towels/cum-rags and you can see how the title lengths vary and it makes it look a bit discombobulated. 

I have been trying to figure out what to change, and haven't come across a solution yet so I thought I'd ask here for help since I love this as a resource. 

Edited by Atwookie
correct URL
Link to comment
  • Replies 3
  • Views 380
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

@Atwookie Hi! You can add this code in Website > Pages > Website Tools > Custom CSS to address the issue:

@media screen and (min-width: 768px) {
  .products.collection-content-wrapper .grid-item-link.product-lists-item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .products.collection-content-wrapper .grid-item .grid-image {
     flex-shrink: 0 !important;
   }
   .tweak-products-text-alignment-middle .products.collection-content-wrapper .grid-meta-wrapper {
     flex-grow: 1 !important;
   }
}

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? 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.