My website is greerchicago.com and I’m using the Stretch theme. I’m interested in adding a 200px margin to the left and right sides of my site but can’t work out how to do it. Any insight would be appreciated.
Thank you.
A user sought help adding 200px margins to both sides of their Shopify store (greerchicago.com) using the Stretch theme.
Solutions Provided:
Two approaches were offered:
CSS modification - Target the .page-width class with max-width: calc(100% - 400px) plus 200px left/right margins. A media query version was suggested for desktop-only application (min-width: 769px).
Custom code injection - Add CSS via a <style> tag in theme.liquid file, placed above the </body> tag. This solution included a visual result screenshot.
Outcome:
The issue was resolved successfully. The user confirmed the solution worked and thanked the contributors.
My website is greerchicago.com and I’m using the Stretch theme. I’m interested in adding a 200px margin to the left and right sides of my site but can’t work out how to do it. Any insight would be appreciated.
Thank you.
Locate css and try this,
.page-width {
max-width: calc(100% - 400px);
margin-left: 200px;
margin-right: 200px;
}
if desktop-only use
@media (min-width: 769px) {
.page-width {
max-width: calc(100% - 400px);
margin-left: 200px;
margin-right: 200px;
}
}
hope best.
Hey @GREERChicago
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Perfect! Thank you so much for your help.
Thank you!
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.