A user reported a mobile layout issue in the Horizon theme where the quantity selector appears slightly higher than the “Add to cart” button, while desktop display shows proper alignment.
Visual Evidence:
Screenshots provided showing the misalignment on mobile and correct alignment on desktop
Solution Provided:
A working CSS fix was shared that targets mobile screens (max-width: 767px) by adding a 4px top margin to the product form button. The code should be inserted in the theme.liquid file above the closing tag.
Resolution:
Issue successfully resolved
User confirmed the fix worked perfectly after struggling with the problem for two hours
On mobile, the quantity selector and the Add to Cart button are not aligned on the same row.
The quantity box is slightly higher than the button.
It looks fine on desktop, but misaligned on mobile.
Can you please help me to fix the alignment so both elements are even.
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.