Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7027515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:15:29+00:00 2026-05-28T00:15:29+00:00

I am coding a newsletter in a table format that ought to be compatible

  • 0

I am coding a newsletter in a table format that ought to be compatible with (mostly) every e-mail client, but Outlook 2007 adds 1px spaces to every image that’s in one row with text-elements.

I set border-collapse: collapse, cellpadding="0" and cellspacing="0" on the table and style="font-size:1px; line-height:0;" on the TDs but it doesn’t work. IMGs are display:block. Also setting valign="bottom" on the top element and valign="top" on the bottom one didn’t work.

Here is my fiddle: http://jsfiddle.net/ycpNK/9/ – The red and the green boxes are the ones affected by the spacing. You can reproduce this bug in Outlook 2007.

Does someone know how to get rid of the spaces?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:15:30+00:00Added an answer on May 28, 2026 at 12:15 am

    If I recall correctly, setting display:block on the image corrects this behaviour. So try:

    <img src="myimage.jpg" width="100" height="20" style="display:block;" />
    

    Another thing to try is to remove all unnecessary whitespace from the cells that you’re getting the problems.


    By ‘remove unnecessary whitespace’ I mean if you have this:

    <td> *here there may be several spaces and a return character*
        <img src="foo.gif" />
    </td>
    

    Replace it with this:

    <td><img src="foo.gif" /></td> *no unnecessary spaces or returns*
    

    It’s hard to diagnose the problem without seeing your html but this has fixed some of my layout errors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been navigating the briar patch that is e-mail newsletter design and coding.
After coding and testing a Java application (lets say with Eclipse, but not necessarily)
Coding a new 3D engine is fascinating but I there are so many out
A coding style presentation that I attended lately in office advocated that variables should
my coding is working well .But I want to store the edited spinner value
Been coding for 20+ years. I'm new to Java3d but I am really impressed
Coding HTML5 page for use in iPad Mobile Safari that has tag for embedding
While coding, I wondered if a plugin exists that I could highlight a series
Coding Platform ASP.NET 4.0 WebForms I have two pages that are relevant here Login.aspx
Coding Platform ASP.NET 4.0 WebForms on IIS7.5 If I request a page blahblah.aspx which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.