@LiIIipup please see the below updated code.
Topic summary
A user seeks to resize and align pricing text beneath collection images on mobile devices (tablets and phones). The text currently displays improperly, breaking across multiple lines.
Solutions Provided:
Multiple experts offered CSS code snippets to address the issue:
- Initial suggestion: Add flexbox CSS to
theme.liquidtargeting screens under 1024px - Alternative approach: Modify
component-price.csswith media queries to adjust font size and justify content
Current Status:
The user successfully implemented the code but faces a remaining challenge: displaying price text on a single horizontal line without reducing font size. Screenshots show the text still breaks on devices 514px and smaller.
Expert Recommendation:
The final advice suggests that keeping text on one line without reducing font size is impractical on smaller screens. The expert recommends reducing font size by maximum 2px for devices under 640px to maintain readability while achieving better layout.
Resolution: The discussion remains open, as the user’s preference (single-line text without size reduction) conflicts with responsive design constraints for small mobile screens.