A Shopify store owner using the Dawn theme needed to resize featured collection images on the homepage for desktop view only, as the images were taking up the entire screen and looking disproportionate.
Initial Problem:
CSS code found online resized images for both mobile and desktop, making mobile images too small
Desktop images remained oversized and visually unappealing
Solution Process:
A support representative provided CSS code using media queries targeting desktop screens (min-width: 750px). The initial attempts had alignment issues, creating large gaps between product images and descriptions.
Final Working Solution:
CSS code targeting both .collection .card__inner and .collection .card__information with:
Width set to 60%
Margin set to auto with !important flags
Applied only to screens 750px and wider
This successfully resized desktop images while maintaining proper mobile display and alignment between product images and descriptions.
Status: Resolved. The user confirmed the solution worked perfectly.
Summarized with AI on November 7.
AI used: claude-sonnet-4-5-20250929.
Hi! I have been searching and searching for code and can’t find code that will resize the featured collection product images for desktop. My desktop page looks terrible with the images taking up the entire homepage. I found an CSS code to add to each featured collection however, this changes both the mobile & desktop size making the mobile size tiny & desktop perfect. Desperate for help please !
Unfortunately, this code didn’t work as per below image of the featured collection on desktop ( literally takes up the entire computer screen and looks terrible)
The code below has been the only code I have found that has adjusted the featured collection image on DAWN theme however, this changes both mobile & desktop and looks way too small on mobile & perfect on desktop- any idea how to alter this code so it doesn’t effect the mobile visual?
HOWEVER, please see what it is doing below on desktop- creating huge spaces inbetween the photo and the description is not aligning now. Please see below:
HOWEVER, please see what it is doing below on desktop- creating huge spaces inbetween the photo and the description is not aligning now. Please see below: ( photo in the first response).
Yes, what I mean is you can add one of the two; if customizing is okay, then there’s no need to add it in the theme.liquid
Your issue is that the image is resized and centered, however, the price section is still left-aligned.