Have you had image spacing problems in Hotmail and Gmail recently?

Posted on Friday July 2nd, 2010 by Antony Malone

You may have noticed that recently hotmail and Gmail have been setting spacing to images, making it a nightmare for developers making image based email designs working in these email clients.

If you imagine html emails as a language and the email clients as the interpreters, it’s easy to understand why there are inconsistencies between the different email clients.

One of the most popular inconsistencies is the image spacing problem. It happens when you have a number of images that you want to be together/side by side within the email. Below is an example of what hotmail does with spacing around the images:

Example of images when in Gmail and Hotmail

Thankfully there is an easy way to fix this and it doesn’t affect the design of the email in any of the other email clients. To do this you need to know a little html code:

<img src=”anyimage.jpg” alt=”Image title here” style=”display:block;”>

You need to add this to all the affected images. Once this is added your images should be together with no spacing between them as below:

block style added.

Categories:

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <h4> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <br> <img> <span>
  • Lines and paragraphs break automatically.
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Links to specified hosts will have a rel="nofollow" added to them.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Subscribe to Blog

Simple & Effective Email Marketing - find out more

About Us

Extravision is a privately owned UK-based email service provider founded in 2004, with a great ISP reputation ensuring high deliverability rates. We offer flexible email marketing solutions to both small and large businesses across all sectors.

The posting and presence of content in a blog entry on this site does not necessarily mean that extravision agrees with the content, ensures its accuracy or otherwise approves of it. Nothing in any blog constitutes a binding representation, agreement or an endorsement on the part of Extravision. Please review the site terms of use carefully.