0

I am working on a Newsletter and am therefore pretty much forced to use tables.

According to this source, "margin-top" and "margin-bottom" is not supported by Outlook 2007/10/13. Since Outlook is a requirement for my Newsletter, I need a workaround.

Obviously there's "cellspacing", I however do sometimes want to apply margin-top/bottom without left/right. How can this be achieved?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
morrow
  • 174
  • 1
  • 15
  • If you don't want to use CSS, you may have to add blank rows on the to and bottom with a dummy image – Arun Jul 01 '13 at 10:36

2 Answers2

1

If you needed pixel perfect height I would pad an empty cell with a spacer (clear 1px x 1px gif).

Eth
  • 240
  • 1
  • 3
  • 10
  • won't this approach break if image blocking is turned on? – morrow Jul 01 '13 at 11:00
  • Its really the only viable alternative. If images are turned off it might look a bit odd, the other alternative is to use breaking spaces in the empty rows but then (without CSS) you wont have full control of the height of the element. – Eth Jul 03 '13 at 09:40
1

In the end I was able to solve this problem to my satisfaction by adding empty rows (without images) with a fixed height. This actually seems to be working fine with quite a lot email clients.

morrow
  • 174
  • 1
  • 15