Hello, on mobile I want to change the space for the image gallery sections. I want it to be 0px left and right & 10px between images. Thank You
store: www.cultureposter.com
A user seeks to modify image gallery spacing on mobile for the Symmetry theme, specifically wanting:
Desired spacing:
Solution provided:
A developer shared CSS code to be added to the theme’s base.css file:
base.css.gallery--with-margins class removing horizontal margins and gutters.gallery__item with 0px left/right margins and 10px bottom marginThe solution uses !important flags to override existing theme styles. The user was reminded to mark the answer as accepted if the solution works.
Hello, on mobile I want to change the space for the image gallery sections. I want it to be 0px left and right & 10px between images. Thank You
store: www.cultureposter.com
Hello,
Step 1: Navigate to your Shopify admin panel and go to “Online Store.”
Step 2: Click on “Themes” and then select Edit code
Step 3: Find base.css
@media (max-width: 768px) {
.gallery--with-margins {
margin-right: 0px!important;
--gallery-gutter: 0px!important;
}
.gallery--with-margins .gallery__item {
margin-bottom: 10px!important;
margin-left: 0px!important;
margin-right: 0px!important;
}
}
Do not forget to make the answer as solution and like the solution ![]()
THank you