Hello, I would like to center items in featured Collection. It seems to be set to the left a little and would love to fix this asap. See screenshot for reference.
Thank you so much!
Ella.
A user seeks to center product items in a featured collection on their Shopify store. The initial issue shows products appearing left-aligned with uneven spacing (screenshot provided).
Solutions offered:
base.cssjustify-content: center to center the grid layoutAll solutions involve editing the theme’s base.css file with custom CSS code. The discussion remains open as the user hasn’t confirmed which solution resolved their specific spacing issue.
Hello, I would like to center items in featured Collection. It seems to be set to the left a little and would love to fix this asap. See screenshot for reference.
Thank you so much!
Ella.
Hello @ellacoker ,
Edit base.css under assets, scroll down to bottom and add this css.
.card__content, .card__content .price {
text-align: center !important;
}
Regards
Guleria
Hi, instead of centering the price I would like the actual image margin/padding on the right to be taken away
Hi @ellacoker ,
Go to online store → themes
actions → edit code → assets → base.css or theme.css
paste this css at the end
.featured-collection,
.collection,
.collection-grid,
.collection__products {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 1rem; /* optional: spacing between items */
text-align: center;
}
save and refresh.
thanks
Manoj
Hello @ellacoker ,
Here are the steps to apply the necessary changes in your Shopify store:
.slider-mobile-gutter ul.grid{
gap: 2rem !important;
}
.card-information,.card__information {
text-align: center !important;
}
Let me know if you need further assistance!