We're having an issue with some of the HTML attributes on images in C&P Designer. I'm not sure if this is something that Salesforce's HTML field coding is responsible for or something that C&P is doing.
One of the supported HTML attributes in the Salesforce HTML field is width (according to the linked help article: https://help.salesforce.com/s/articl...tor.htm&type=5). However, if I add the HTML width attribute to an img tag and then switch back to visual view and then back to HTML view, it converts itself to a style tag with the width in the style tag. For example, <img href="" width=600> becomes <img href="" style="width: 600px;">. This happens even if I already declare the CSS style width parameter separately.
Is there a way to force it to keep the HTML width attribute? Most email clients can handle the CSS width paramter, but some clients only respect the HTML width attribute, so our images look way out of proportion in those clients. Outlook for Windows is one such email client. Is there a way to work around this if we can't force it to use the HTML width attribute?
One of the supported HTML attributes in the Salesforce HTML field is width (according to the linked help article: https://help.salesforce.com/s/articl...tor.htm&type=5). However, if I add the HTML width attribute to an img tag and then switch back to visual view and then back to HTML view, it converts itself to a style tag with the width in the style tag. For example, <img href="" width=600> becomes <img href="" style="width: 600px;">. This happens even if I already declare the CSS style width parameter separately.
Is there a way to force it to keep the HTML width attribute? Most email clients can handle the CSS width paramter, but some clients only respect the HTML width attribute, so our images look way out of proportion in those clients. Outlook for Windows is one such email client. Is there a way to work around this if we can't force it to use the HTML width attribute?
Comment