title: Remove top and bottom image spacing in Outlook
body: <p>In Outlook Desktop apps (2010 and 2013) there's an extra gap on images at top and bottom:
  <a href="https://i.stack.imgur.com/lmxI9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lmxI9.png" alt="enter image description here"></a></p>
  
  <p>Maybe the problem is easier to recognize if the content is marked:
  <a href="https://i.stack.imgur.com/Ht3OK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ht3OK.png" alt="enter image description here"></a></p>
  
  <p>It looks like some margin and padding stuff, but that did not work. I tried different hacks/solutions too (e.g. set line-height on table cell, remove whitespaces in table cell, remove surrounding div, set vspace and hspace on image, set <code>display: block</code> for image,...), but without an effect. The HTML looks like:</p>
  
  <pre><code>&lt;table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; margin-top: 0px; margin-bottom: 0px;"&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td width="311" valign="top" class="nopadding imagecell" style="padding: 0px 0px 0px 0px; font-family: &amp;quot;Open Sans&amp;quot;,&amp;quot;Helvetica Neue&amp;quot;,HelveticaNeue,Calibri,Helvetica,Arial,sans-serif; font-size: 12px; color: #000000;"&gt;
                  &lt;div class="imagewrap" style="overflow: hidden; margin-top: 0px; margin-bottom: 0px;"&gt;
                      &lt;img align="left" src="/path/to/image.jpg" width="311" height="234" alt="" style="margin: 0;"&gt;
                  &lt;/div&gt;
              &lt;/td&gt;
              &lt;td width="10" style="font-family: &amp;quot;Open Sans&amp;quot;,&amp;quot;Helvetica Neue&amp;quot;,HelveticaNeue,Calibri,Helvetica,Arial,sans-serif; font-size: 12px; color: #000000;"&gt;
                      &amp;nbsp;
              &lt;/td&gt;
              &lt;td valign="top" class="background padding" style="padding: 10px 10px 10px 10px; background-color: #ececed; font-family: &amp;quot;Open Sans&amp;quot;,&amp;quot;Helvetica Neue&amp;quot;,HelveticaNeue,Calibri,Helvetica,Arial,sans-serif; font-size: 12px; color: #000000;"&gt;
                  &lt;h1 style="font-family: &amp;quot;Open Sans&amp;quot;,&amp;quot;Helvetica Neue&amp;quot;,HelveticaNeue,Calibri,Helvetica,Arial,sans-serif; font-size: 19px; font-weight: normal; color: #51ae32; margin: 0px; margin-top: 0px; margin-bottom: 0px; padding: 0px; padding-top: 0px; padding-bottom: 0px;"&gt;PhD-Program erstmals ausgezeichnet&lt;/h1&gt;
                  &lt;p style="margin-bottom: 0px;"&gt;Andipsun daereicit fugit aut quunt volupta tibus. Abore doluptu reptatiumet ad mag- nam fugit dolupturepe nissunt. El illitateni nonecatem rae odi ut dest que asperro vi- tatia ectorem dit laut optas et nonecatem rae. El illitateni nonecatem rae odi ut dest que asperro vitatia ectorem dit laut optas et nonecatem rae. &lt;a href="/" style="color: #51ae32;"&gt;Weiterlesen&lt;/a&gt;&lt;/p&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>The rendering should be like in other clients or browsers:
  <a href="https://i.stack.imgur.com/S3HDI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S3HDI.png" alt="enter image description here"></a></p>