I have a single image in a collage section on my home page. Looks great on mobile but on desktop it stretches the image too much. I want to set max-width on desktop to 1080px. How can I do this? Thanks!
Hi @hezrez94
Is this for banner only? You can also edit your image into 2000px so it wont be blur or stretched the image. And to set the max-width, please share your store URL. Thanks!
I’m using a single image collage, I don’t want it to stretch across like a banner.
Store is https://rejoover.co.nz and the image I’m trying to fix is the one that says “I feel 20 years younger”, near bottom of page. Thanks for your assistance
Thanks for the info, check this one.
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (min-width: 749px){
section#shopify-section-template--15106090172505__18041cef-18e6-472f-8a53-e51df3630df8 .media.media--transparent.ratio {
max-width: 1080px !important;
}
.page-width.section-template--15106090172505__18041cef-18e6-472f-8a53-e51df3630df8-padding {
width: 1080px !important;
}
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Amazing. It worked perfectly. Thank you!!
