Centering the payment icons image and copyright text in a Shopify Dawn footer, plus adjusting vertical spacing.
Initial fix: Adding CSS in base.css to make .footer__content-top.page-width use Flexbox (display:flex; flex-direction:column) centered the text but not the image.
Correct approach: Add CSS in theme.liquid (Shopify’s main layout file) instead, and remove the base.css override to prevent conflicts. This centered both elements.
Spacing adjustments:
Code updates reduced the gap between the payment icons, the divider line, and the copyright text.
A later update increased space between the footer menu and the payment icons.
Regression and final solution:
When the image became off-center again, adding CSS near in theme.liquid fixed it by enforcing:
display:flex; flex-flow:column; align-items:center; gap:1rem on .footer__content-top.page-width.
Notes:
CSS (Flexbox) is used to control layout and spacing; selector: .footer__content-top.page-width.
Code snippets are central to the resolution; screenshots were illustrative only.
Outcome: Issue resolved. Footer image and text are centered; spacing is customizable via the gap and related rules. Removing conflicting CSS in base.css was key.
Summarized with AI on December 11.
AI used: gpt-5.
And if possible to insert a little space between the footer menu and the payment infos and reduce the space between payment infos, the line and the copyright
perfect now it works! Thank you very much. Do you have an idea how to reduce the space between the picture of the icons and the line and aswell between the line and the copyright?
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.