I am using the object-fit:cover css property; for an email newsletter, outlook removes this property. how can i use it?
I can't use the image as the background of the div, they ask me for it as a separate image. Thanks.
I am using the object-fit:cover css property; for an email newsletter, outlook removes this property. how can i use it?
I can't use the image as the background of the div, they ask me for it as a separate image. Thanks.
The truth is that it is not possible to use this property in mail clients , nor is there a way to emulate this property in a practical or equal way, since for security reasons many of these block many features of html5 and css3.
I recommend you look at this list of technical compatibility in mailing design , published by MailChimp to make sure you can use it or not, if the property or element you are looking for is not in the list, you can not use it.
It's best to use a framework like ink de foundation or emailframe.work . Now, if you have a minimum knowledge of html and css layout, it is best to learn to use tables for layout (it is still valid in email, although it is now a terrible practice for the web) or download an email template and modify it.