Resize Featured Collection Image on homepage for desktop only in Dawn Theme.

Topic summary

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 !

Website: Charlie Helena Collection- Mum & Babe Outfits |Accessories | Boho Rugs – Charliehelenacollection

Desktop Images below for reference:

CSS code added that changes both Desktop & Mobile

Hi @RC94

Can you modify it as follows to make the CSS affect only desktop devices?

@media screen and (min-width: 750px) {
    h2 {
        font-size: 20px;
    }
}

Or make it affect only mobile devices

@media screen and (max-width: 750px) {
    h2 {
        font-size: 20px;
    }
}

If it helps you, please like and mark it as the solution.

Best Regards

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)

This is where I am adding the CSS coding

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?

Hi @RC94

Please change to it

@media screen and (min-width: 750px) {
     h2 {
        font-size: 20px;
    }
    .collection .card__inner {
       width: 60%;
       margin: auto
   }
}

Or you can add CSS here

Step 1. Go to Admin → Online store → Theme > Edit code

Step 2. Find the file theme.liquid. Add the following CSS snippet before

@media screen and (min-width: 750px) {
     h2 {
        font-size: 20px;
    }
    .collection .card__inner {
       width: 60%;
       margin: auto
   }
}

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:

Apologies- the start of my message has disappeared.

AMAZING- the code worked here but not on the liquid.theme

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).

1 Like

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.

Please change to it

@media screen and (min-width: 750px) {
     h2 {
        font-size: 20px;
    }
    .collection .card__inner, .card__information {
       width: 60% !important;
       margin: auto !important;
   }
}

Result

If it helps you, please like and mark it as the solution.

Best Regards

1 Like

YOU ARE AMAZING! Thank you this worked a treat!

1 Like