Goal: Make the mobile Add to cart button span full width; desktop layout is fine.
What happened:
OP wanted the mobile button to be full width instead of left-aligned, shared a product link and screenshot.
Solution that worked: adding CSS targeting the specific submit button ID (e.g., button#ProductSubmitButton-template–19142479642958__main) via Online Store > Edit code > theme.liquid (above ). Result screenshot showed a full-width button on mobile.
Alternative that did not work: adding a custom class (.a2cknop { width: 100%; }) in base.css. OP had already tried this; it didn’t override theme styles.
Outcome:
Issue resolved for the original poster after targeting the button by its specific ID in theme.liquid.
Open question:
Another user (Dawn theme) asked how to make the button truly full screen with no left/right gaps. They tried adjusting .product__info-wrapper, .product-form, and .product-form__buttons (even with !important) without success. No solution provided yet.
Notes:
Screenshots were used to illustrate the initial issue and the successful result.
Summarized with AI on December 12.
AI used: gpt-5.
Hi dear folks, i’m trying to resize this add to cart button to full width of the page, it doesn’t look professional if it’s aligned to left side and now full width to the right side.
How could i do this?
I think it’s a simple fix by adding some css anywhere but i can’t seem to figure it out.
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.
but what if i want to size it on full screen? so there is no gap on the left and right hand side. im using the dawn theme and tried to change the css of . product__info-wrapper, . product-form, . product-form__buttons… nothing worked even with !important. I need your help haha