Hi, I am trying to center my cards, I have 7 cards, first row 4 and second 3.
Is it possible to center just the tree bellow? right now they are on the left on
my homepage service.
Warm regards
Hi, I am trying to center my cards, I have 7 cards, first row 4 and second 3.
Is it possible to center just the tree bellow? right now they are on the left on
my homepage service.
Warm regards
@Artez please add this css to the very end of your base.css file and check,
Shopify Admin → Online Store ->Theme → Edit code → base.css
.multicolumn .multicolumn-list{justify-content: center;}
hey @Artez dear follow these steps
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->before the ----->
before the body ----->
if this code work please do not forget to like and mark it solution
Hey there!
Yes, absolutely! You can center just those 3 cards in the second row. Here’s how:
Solution: CSS for centering incomplete rows
/* Center cards when there are fewer than 4 in a row */
.grid--4-col-desktop .grid__item:nth-child(4n+1):nth-last-child(-n+3),
.grid--4-col-desktop .grid__item:nth-child(4n+1):nth-last-child(-n+3) ~ .grid__item {
margin: 0 auto;
}
/* Alternative approach - target the grid container */
.collection-list-wrapper .grid {
justify-content: center;
}
.collection-list .grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}
Simpler approach if you know the section class:
/* Replace 'your-section-class' with the actual section class */
.multicolumn .grid {
justify-content: center;
}
This will keep your first row of 4 cards normal, but center the remaining 3 cards in the second row.
Alternative: With Easy Edits, you could just drag those cards to center them visually without any CSS - might be easier if you’re planning other layout changes!
Let me know if this centers them properly!