views:

191

answers:

3

As we all know, Outlook 2007 uses the Word 2007 rendering engine, causing endless grief when designing HTML email message. [Insert rant here] In particular, float, margin, and padding are - shall we say? - poorly supported.

To simulate float so that text wraps around an image, apparently we can simply use:

<img src="foo.png" align="right">

The issue is padding/margin. Without padding/margin, the wrapped text butts up against the image which looks goofy. One workaround is to edit the image and add transparent framing that simulates margin.

Does anyone know any other workarounds?

+1  A: 

If you add a inline style to the img tag with a margin command like this:

<img src="foo.png" align="right" style="margin:5px;">

I'm guessing that is what you're trying to do.

Erik
or if you want to be even more exact <img src="foo.png" align="right" style="margin-left:5px;">
Erik
Thanks for the suggestion. But from my direct experience and subsequent research, that does not work. Outlook 2007 does not seem to support margin, whether specified inline or otherwise. Any other ideas?
David Weinraub
+1  A: 

I know this thread is old, but an alternative would be to give the image a solid border the same colour as the container.

Darren westall
Thanks for the answer. ;-) Interesting idea. Let me play with that and if it works, then I'll accept the answer. [Unfortunately, I'm swamped at the moment, so give me some time to clear my workload and then I'll check it out.]
David Weinraub
A: 

I have tried it this morning and sadly borders on images arnt supported, however, you can implement the concept on the text area :).

border-left: 7px solid #fff;

for example, inside a white container would give the visual effect of left padding....

Darren Westall
That's pretty solid. Thanks.
David Weinraub