how to specify a repeater as a "top" or "bottom" item

So, I want a dashed line to separate the different repeater items in my client's newsletter.

http://bit.ly/np3DX

But what I don't want is a dashed line after the last item.

How do I specify an item as a "top" or "bottom" if it is a repeater? I see the code in the sample template. But I don't know how to incorporate it. 

Thank you!

Mathew Mathew, 8 years ago

When you say you can see the code in the sample, can you let us know what code specifically you are referring to? If it just a class being added, then it is likely to not be a repeating element, but a single editable element instead.

What you probably need is the http://reference.sitepoint.com/css/pseudoclass-lastchild last child pseudo class, but unfortunately we haven't done a lot of testing to see how well supported it is.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free