A user encountered product price alignment issues in their Shopify store using the Trade theme. While prices aligned horizontally on desktop, they appeared misaligned on mobile devices and narrower browser windows.
Problem Details:
Desktop view showed proper alignment
Mobile and responsive views displayed prices vertically stacked or misaligned
User had previously applied fixes for desktop only
Solution Provided:
Two community members offered CSS solutions targeting mobile viewports (max-width: 767px):
Add custom CSS to theme.liquid file (above closing tag)
Set minimum height for .card__heading or .card-wrapper .card__heading elements
Values suggested: 19vw or 40px
Outcome:
The issue was successfully resolved. The user confirmed the solution worked and thanked the contributors. Both solutions involved media queries to ensure consistent horizontal price alignment across all device sizes.
Summarized with AI on October 26.
AI used: claude-sonnet-4-5-20250929.
Hello everyone,
I use trade theme in my store. how can i make the price stay in same line. I did something before to make the price stay in same line when its in computer size, but it didnt change how it presents in mobile. please see the image
Hey @Am01,
Thanks for Bringing this Question to Shopify community.
In order to align the product price horizontally you need to follow these steps. Go to Shopify Admin >> Online Store >> Edit Code >> base.css.
Go to the end of base.css file and paste the following code.
@media only screen and (max-width: 767px) {
.card__heading {
min-height: 40px !important;
}
}
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.