Could you please assist me with my html email body issue regarding the "object-fit: cover;" parameter? It works perfectly when displayed on the web, but is not functioning correctly in an html email body.
EmailProvider: New Outlook in WIN PC Mobile: Also Outlook
Here is a sample of the code:
body {
background-color: ;
font-family: roboto;
}
.PanelPicture {
...
}
.PanelBackground {
...
}
.Scena1 {
...
}
<center>
<div class="PanelBackground">
<div class="PanelPicture">
<img src="paris.jpg" alt="Paris" , class="Scena1">
</div>
</div>
</center>
You can test by changing "paris.jpg" to any picture you have or even try it here on w3schools - just swap codes and keep the image (image from that page).
Issue: When I receive this email, the picture does not fit within ".PanelPicture"; instead, it overlays outside.
I came across Can I Email - css object fit which states that my email client should support this feature.
I'm hoping for a code revision to help solve the issue of fitting the picture inside the panel within the email's html body as well.