Repeating Images In Outlook 2007

Hi,

I use a table based layout for my email. I'd like to repeat an image vertically within a cell. I know about the background-repeat property and this works great in a browser. However, Outlook 2007 doesn't support the property and so the image is not displayed.

Has anyone got any suggestions or tricks on how to replicate this functionailty some other way? The height required for the image to fill changes depending on how much text is in the column next to it, hence the repeat. I could create an image of the exact size but this would have to be a different height for each email.

Could I create an extra long image that is not resized in the cell but instead would display as much as the cell height allowed and the rest would just "disappear" from view?

Thanks for your help.

Dominic Martin

Stormy Stormy, 9 years ago

Hi Dominic,

Bit of a tricky one there :/ An initial reaction would be to perhaps use an absolutely positioned image z-indexed behind your table, but O2007 doesn't like position either.

Afraid the only workaround I can think of is to make a nice large standard image that you can crop quickly per mail, then z-index:-1 and use margin values to pull it up behind the table, eg:

<table>
<tr>
  <td>your content here</td>
</tr>
</table>

<img src="yourimage.jpg" style="z-index:-1;margin-top:-100;">

Not ideal of course, but I'm afraid I can't think of something more elegant currently.


No-one expects the Spanish Inquisition!
Stig Stig, 9 years ago

Dominic, could you post the image? It could possibly be helpful.

Stormy, you're onto a solution - the image needs to be an img tag placed behind the text, but it also needs to scale to the right size, and be positioned correctly.

Unless the image is extremely vital, I'd possibly just do a background-image, and say whoever sees it, sees it.

Also, it might be interesting to concider adjusting the design or slicing the image, etc., to make it easier to pull off.

But anyways, I recommend you post the image, and see if anyone finds a solution.

Stig


The Campaign Monitor Blog – HTML email smarts to go with your good looks.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098