On the left and right side I have some spacing. In al the mail clients it shows that spacing, except in Outlook 2007/2010/2013.
Image 1
This is what I want. On the left side I have some text and on the right side I have an image. The red lines are showing the spacing between the text/image and the dashed border.
Image 2
In outlook 2007/2010/2013 it doesn't give me spacing on the left and right of the dashed border. Between the text and image I use "outlookseparator". When I don't use "outlookseparator" it gives me the spacing at the left side (spacing before the text), but it displays the image under the text.
How can I have the result of image 1 in outlook 2007/2010/2013?
Outlook can't read HTML5 elements. Without any code to see, I assume you're using divs and
outlookseparator
is a class.This may come as a bit of a shock (it's a lot of text) but this is what you'll have to do to get what you want in outlook. You can modify it, but make sure everything (widths) adds up.
By the way, using classes in an email is bad practice. It will look terrible in GMail, as GMail doesn't read style tags or external CSS.