https://j3bqgp-st.myshopify.com/?pb=0
As you can see the breaks between each section are pretty large. How can I reduce them?
A user seeks to reduce large spacing between sections on their Shopify store homepage. Multiple solutions are offered:
Recommended approaches:
base.css file targeting .section margins with media queries for screens wider than 45emtheme.liquid file before the closing </head> tagTechnical details:
Suggested CSS reduces margin values from the default var(--space-outer) to smaller fixed values (30px or 5rem) or a fraction of the original spacing variable. All solutions use @media (min-width: 45em) to apply changes only on larger screens.
One respondent includes a screenshot demonstrating code placement. The discussion remains open with no confirmation from the original poster about which solution worked.
https://j3bqgp-st.myshopify.com/?pb=0
As you can see the breaks between each section are pretty large. How can I reduce them?
Hi @Youngerme
I think your theme support configure the space outer. You should find it before do the code override.
If you want to do the code override, you can use this css code:
media (min-width: 45em) {
.section {
margin: 30px;
}
}
Hi @Youngerme
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales!(https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!
Hello @Youngerme ,
Here are the steps to apply the necessary changes in your Shopify store:
@media (min-width: 45em) {
.section {
margin: calc(var(--space-outer) * 1) 0 !important;
}
}
Or
@media (min-width: 45em) {
.section {
margin:5rem 0 !important;
}
}
Let me know if you need further assistance!