Alternating image alignment in repeater

I'm trying to design a template with an effect similar to the "Natural" template in the template gallery by Newism.  The design as shown alternates the image alignment for every other item in a repeater section.

So the first one is align left and the second is align right, the third is left again...

From looking at the plain html files included in the download this is accomplished with table cells.  In the "html with cm tags" this effect is absent and the image alignment is just set with a basic img align='left'

So I guess my question is, am I missing something in these template files or is there a mismatch here?

If I'm not missing anything, then is there another way to achieve the alternating image alignment Newism has in their design?

roshodgekiss roshodgekiss, 6 years ago

Hi VFHwebdev, how I'd probably pull this off is as follows:

      <td><img ... align="left" /><p>Your content here</p></td>
      <td><img ... align="right" /><p>Your content here</p></td>

Don't forget that your repeaters have to include title, description or image template tags to be editable.

The downside is that you will always have an even number of content rows (unless you delete all the content from one of the rows). Good luck!

Get in touch with us on Twitter:
We're also on Facebook:
VFHwebdev, 6 years ago

Ok, thanks. I'll give that a try.

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free