Shopify themes, liquid, logos, and UX
I'm using the template "Image with text" from Dawn template
How can I make that the image is not cut off and the logo can be completely visible in the frame?
Thank you
conditioner bar page ( picture with table comparison )
Solved! Go to the solution
This is an accepted solution.
here is the code as an example "
.image-with-text__media img { object-fit: contain;
width: 100%;
height: auto;"
}
Hey Ctsfeir , our team will help you
Access Your Theme Code:
Locate the CSS File:
Modify the CSS for the Image:
Here is an example of the CSS you might add or adjust:
Save Your Changes:
Test Your Changes:
By adding or adjusting these styles, you should be able to make sure the image in the "Image with text" section of the Dawn template is fully visible without being cut off. If the issue persists, you may need to further inspect the specific CSS properties applied to the image and its container and make additional adjustments accordingly."
if you have any other works or query reach us out on our bio 👍
thanks for the code, should i paste it like that on one line?
is it possible to get the code as i should paste it in base.css
thanks hamza 😄
/* Ensure the image is fully visible */ .image-with-text__media img { object-fit: contain; /* This ensures the entire image is visible */ width: 100%; /* Ensure the image takes up the full width of its container */ height: auto; /* Maintain the aspect ratio of the image */ }
This is an accepted solution.
here is the code as an example "
.image-with-text__media img { object-fit: contain;
width: 100%;
height: auto;"
}
Awesome, thanks so much hamza, do you know how to remove the border line of the picture edges ?
I can see a border on the edges of the photo even tho there are no edges in the artwork! Any code to remove it?
How do you manage customer reviews and make them work for your products? A Shopify ap...
By JasonH Jul 22, 2024In June, we were thrilled to share the latest updates released in Shopify Editions Su...
By JasonH Jul 15, 2024Welcome to our latest blog feature. We're excited to interview a talented team of femal...
By JasonH Jul 1, 2024