Making products fit into a grid

Solved

Making products fit into a grid

ascended
Excursionist
19 0 2

Hello, I have made a grid using CSS but cannot find a way to fit each of my products into the separate containers. Originally my products look like the second photo, and I would like for it to look like this, but instead have it inside the layout of the grid I created (using up all the extra space). How do I go about doing this? Thanks!

 

Store link:https://ctrl7.com/collections/all
Password:first

Page: shop all

image.png

Screenshot 2024-07-23 at 2.15.13 PM.png

Accepted Solution (1)

PaulNewton
Shopify Partner
7746 679 1617

This is an accepted solution.

You have a grid within a grid with a product-grid that is not a grid but a flexbox then with grid__item(s) that aren't grids but flexbox.

Fix every step along the chain to be sane:

.product-grid-container > .collection > #product-grid > .grid__item

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


View solution in original post

Reply 1 (1)

PaulNewton
Shopify Partner
7746 679 1617

This is an accepted solution.

You have a grid within a grid with a product-grid that is not a grid but a flexbox then with grid__item(s) that aren't grids but flexbox.

Fix every step along the chain to be sane:

.product-grid-container > .collection > #product-grid > .grid__item

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org