Hello! I need help (probably with coding) to fix how this collection is displayed, each item is normal size, except it keeps making the last item on the page super large and I want all of the products to be uniform size. Here is the link to the collection on my store. Thank you so much in advance!!
Topic summary
A store owner encountered a layout issue on their collection page where the last product displayed at an abnormally large size while other items appeared at normal dimensions.
A solution was provided involving custom CSS code:
- Navigate to Shopify admin → Online Store → Themes → Edit code
- Locate the CSS file (base.css, style.css, or theme.css) in the Assets folder
- Add media query code that sets a maximum width of 25% for grid items on desktop screens
- Save the changes
The CSS fix ensures uniform product sizing across the collection grid by constraining each item’s width. The solution was confirmed successful by the original poster, resolving the display inconsistency.
1 Like
Try this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media screen and (min-width: 750px) {
.collection .grid__item {
max-width: calc(25% - var(--grid-desktop-horizontal-spacing));
}
}
- And Save.
- Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
1 Like
Thank you so much!!
