Hi there!
I have a (probably simple) question for you.
On one page of my webshop, I’d like to centre the blocks of 3 sub collections that I made:
On another page I have four blocks, and it looks good:
The webshop is www.bickerybbq.com
Thank you in advance!
Hey,
You can add a few css in grid class. Add the below css and it will works for you.
.template-collection .grid {
display: flex;
align-items: center;
justify-content: center;
}
Screenshot: https://d.pr/ffxQUk
Let me know if still it will not works for you.
Thanks!
Hi @Anne-Marieke
Follow this:
- Go to Online Store->Theme->Edit code
- Asset-> theme.css-> paste bellow code in bottom of file
#shopify-section-collection-show-themacollecties ul.grid{display: flex; justify-content: center; flex-wrap: wrap;}
Best regard
Hello @Anne-Marieke
It’s GemPages support team and glad to support you today.
I would like to give you a solution to support you.
-
Go to Online Store → Theme → Edit code.
-
Open your assets/theme.css theme file.
-
Add the code at the end of the file:
#shopify-section-collection-show-themacollecties ul{
display: inline-block;
width: 100%;
text-align: center;
}
Hope my solution can work and support you!
Kind & Best regards!
GemPages Support Team.
Hi @Anne-Marieke
You can try this code by following these steps:
Go to Online store => themes => actions => edit code and add this code on file theme.liquid before tag
Hope this answer helps.
Best regards,
Victor | PageFly
Hi @Anne-Marieke
I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.
Please add this css in your bottom of the css file:
.template-collection .grid.grid–uniform {display: flex; justify-content: center;}
Regards,
San
Thank you! This was the easiest solution for now 
Is there a way to adjust this piece of code to make the images slighty larger as well?
Thank you! This was the easiest solution for now 
@Jasoliya Is there a way to adjust this piece of code to make the images slighty larger as well?
HI
try to add this code
@media only screen and (min-width: 750px){
.template-collection #shopify-section-collection-show-themacollecties .grid .grid__item.medium-up--one-quarter{width: 33.33%;}
}
1 Like
Thank you, that worked great!