Anne  Dougherty's pic
4 months ago

Gmail adding space around images: A Solution

If you've noticed that your images don't look quite right in Gmail these days there is a fix for this from Campaign Monitor: make your images display as block.

While the article, linked below, from Campaign Monitor talks about way to do this that is specific to their tool, it's possible to do this in Salsa as well.

If you've got images you don't need padding around simply add this to your image tag:

style="display: block;"

So, your image tag would look like this:
<img src="http://www.yoururl.org/filname.gif" style="display: block;" alt="Some alt text talking about the image" />

Take a look at the Campaign Monitor article for some background about why this is happening in Gmail.

http://www.campaignmonitor.com/blog/post/3132/how-to-stop-gmail-from-adding-a-margin-to-your-images/

Cheers,
Anne
happy
I'm: feeling geeky




Brian Dockstader's pic
UAC Member
Thanks for sharing. I had no idea they were doing this. I'm so sick of email providers just randomly deciding they aren't going to display code as it is written. Very annoying.
replied 4 months ago


[comment on this post]

Login to reply

  • In this topic

    • 1 reply