Hi Team,
The below image in the Shopify store is not in the right fit in desktop and mobile. Please advise.
Thanks,
Venkatakrishnan
A Shopify store owner reports that an image displays incorrectly on both desktop and mobile devices, not fitting properly in either view.
Proposed Solutions:
CSS Fix (Multiple Contributors):
Two users provided similar CSS solutions targeting mobile devices (max-width: 749px):
base.css file or the section’s Custom CSS areaobject-fit: contain to .banner__media img to ensure proper image scaling!important flagsOne contributor confirmed the website displays correctly on desktop after implementing the fix. The issue appears solvable through CSS adjustments to control how the banner image scales across different screen sizes.
Hi Team,
The below image in the Shopify store is not in the right fit in desktop and mobile. Please advise.
Thanks,
Venkatakrishnan
store name: https://utsahas.store/
it might be that the image size is to big, and somtimes the selected themes may not be in the best fit for the image
if this happen, try to resize the image using photoshop or GIMP
you can also customise your theme if it has specific code requirement
i just check the wesite on desktop and it best fit
@media screen and (max-width: 749px) {
.banner__media {
height: 17rem !important;
}
.banner__media img {
object-fit: contain !important;
}
}
Please add this code to Custom CSS of that section
@media (max-width: 749px) {
.banner__media {
background: #fff;
height: 18rem important;
}
.banner__media img {
object-fit: contain !important;
}
}