Jump to content

Help Needed: Creating Single Item Rows of Long Horizontal Store Items CSS.

Recommended Posts

I'm new here and I'm trying to create a store page on Squarespace where each row features a single item displayed as a long horizontal image. I've been working with some CSS but I'm running into issues with making the images maintain a specific aspect ratio or size and ensuring there's minimal vertical space between them.

I've attached an image of the issue below. As you can see the example stock items cover the width of the screen but i cant force them to stack underneath one another. 

Apologies if the answer is obvious, but any help would be appreciated. 

.products.collection-content-wrapper .grid-image-hover {
  opacity: 0 !important;
}
.products.collection-content-wrapper .grid-image-cover {
  opacity: 1 !important;
}
.products.collection-content-wrapper .list-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 0px;
}
.products.collection-content-wrapper .list-grid img {
  max-height: 200px;
  width: auto;
  height: 200px; 
  object-fit: cover; 
}
.products.collection-content-wrapper .list-grid img {
  max-height: 200px;
  width: auto;
  height: auto; 
  object-fit: contain; 
  margin-bottom: 0px; 
}

 

issue example.png

Link to comment
  • Replies 1
  • Views 138
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.