Hello,
Updated to latest Dawn. I need some help with my code. I need the img’s to be centered. Thanks!
img {
height: 100%;
width: 100%;
display: block;
margin: 0 auto;
padding: 5px;
}
Hello,
Updated to latest Dawn. I need some help with my code. I need the img’s to be centered. Thanks!
img {
height: 100%;
width: 100%;
display: block;
margin: 0 auto;
padding: 5px;
}
Hi @GUUDS ,
Please provide your website so we can provide a code specific for you
Try this code:
.product-single__media-wrapper img {
display: block;
margin: 0 auto;
max-width: 100%;
}
@made4Uo Sent in DM
@NomtechSolution Incorrect reference, it didn’t effect that section. img works though.
Hi @GUUDS ,
You can fix the image by using the code below.
.card__media .media.media--transparent img {
width: 100% !important;
object-fit: contain;
}
I used it in the custom css section on Dawn, & it worked great.
If I could ask for one more - on product pages, how can I do the same thing? 1:1 ratio without cropping with proper spacing between photos. Please let me know, thank you.