All things Shopify and commerce
I just started creating this coffee brand as a personal project. the margins seem to be different. for all the sections which were already there when i started using the template the margins are there and are equal. though for the image banner that i added does not have margins. how to make sure all sections have the same margins (like image with text and featured collection do)
My Store (92ea8e-49.myshopify.com)
Solved! Go to the solution
This is an accepted solution.
Thanks for the info, do you mean the sides right?
Like this.
If it is check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media screen and (min-width: 750px) {
.section+.section {
max-width: 140rem;
margin: auto;
padding: 0 5rem;
}
}
And Save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
its password protected.
sorry about that. its removed now
This is an accepted solution.
Thanks for the info, do you mean the sides right?
Like this.
If it is check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media screen and (min-width: 750px) {
.section+.section {
max-width: 140rem;
margin: auto;
padding: 0 5rem;
}
}
And Save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
such a legend! thanks mate
hey mate i just checked even though its working great on the desktop website the mobile website still doesnt have equal margins. i want it to be dynamic like the demo store.
Preview Default Theme - Taste Ecommerce Website Template (shopify.com)
Oh, my bad because I limit the code for mobile.
Add this code on the very last closing bracket }
@media screen and (max-width: 749px){
.section+.section {
max-width: var(--page-width);
margin: 0 auto;
padding: 0 1.5rem;
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @aryanagarwaal ,
This is Theodore from PageFly - Shopify Page Builder App.
Two ways to ensure consistent margins for all sections in your Shopify theme:
Best regards,
Theodore | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
this seems to be a chatgpt answer ive already tried that mate not working
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024