Shopify themes, liquid, logos, and UX
Hi Community,
I have issues aligning my custom section to the rest of the page.
When I add content through the standard theme, every section is aligned with the wrapper of the page.
But when I add custom code, the width is the whole page.
How can I fix this? I tried copying code from existing sections, but nothing worked:
display: flex;
display: inline-flex;
etc.
Kind regards
V4Y
Solved! Go to the solution
This is an accepted solution.
try replacing
Hi ^^ can you please send me the link? so I check this.
thank you! 🙂
Hi Adenan,
sure here is the link: https://vapes4you.de/pages/nikotin-shot-rechner
Thank you very much in advance!
Kind regards
V4Y
hello, Vapes4you.
Can you please share the website link?
Hi Uhrick,
sure here is the link: https://vapes4you.de/pages/nikotin-shot-rechner
Thank you very much in advance!
Kind regards
V4Y
go to wherever you are setting the css rules for the custom section and add these two properties:
max-width: 72.6rem;
margin: auto;
Hi Uhrick,
thank you for your help.
The tables on the page are inside divs
<div class="function-container">
I added your css to those classes but it didn't change anything:
This is an accepted solution.
try replacing
Hi Uhrick,
that did the trick! Thank you so much.
Kind regards
V4Y
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025