Img tag padding help

I been trying and failing to get some padding or margin to stick inside the imgsrc tag. Anyone got any tips.?

Mathew Mathew, 6 years ago

Could you give us some more details (perhaps link to an example) of what you mean? Is it happening with a certain email client perhaps?


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
Krazza, 6 years ago

Well was hoping you would give me an example...haha...just a basic question how do you insert some style atbs into the img tag used by the CM editor?

roshodgekiss roshodgekiss, 6 years ago

Hi Krazza, you mean like:

<img src="<$imagesrc link='true' default='image.jpg'$>" style="margin: 0; padding: 0;" />

As Mat touched on above, not all email clients provide reliable margin or padding support. By all means we're happy to take a look at your template and make suggestions if you're still having issues with maintaining margins or padding.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free