You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm implementing the image block via the newsletter presets plugin but encountering an issue. Currently if you have an image and set the width to be 500px in the code it will add the style but also set the width attribute to be width="500". The issue I'm encountering is when you have the width set to a percent so the style is say width:75%, but the attribute of width="75%" is not applied to the image. I've been looking through the code to figure out why this is the case but also how to resolve it without much luck.
So what I'm trying to do is cause this
To become this (like it already does if using PX)
The reason this is occurring is that email software such as MS Outlook and Windows Mail either strip or just ignore style attributes. Any ideas on how this can be addressed?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm implementing the image block via the newsletter presets plugin but encountering an issue. Currently if you have an image and set the width to be 500px in the code it will add the style but also set the width attribute to be width="500". The issue I'm encountering is when you have the width set to a percent so the style is say width:75%, but the attribute of width="75%" is not applied to the image. I've been looking through the code to figure out why this is the case but also how to resolve it without much luck.
So what I'm trying to do is cause this
![]()
To become this (like it already does if using PX)
![]()
The reason this is occurring is that email software such as MS Outlook and Windows Mail either strip or just ignore style attributes. Any ideas on how this can be addressed?
Beta Was this translation helpful? Give feedback.
All reactions