Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
I need a foreach in an article list
Hi guys, I am again in a situation in which I find myself pretty often – I need a class attribute on an element in a list of elements (on the forth, third, doesn’t matter) and I don’t know how to do that in txp. Take a look at this image to make things clearer:
Basically my article list is output as an unordered list and list items are floated to the left and have a right margin of 10px. I need to add a class .last to every third list item so I could strip the right margin for it and make a pixel-perfect layout. Is this possible?
Thanks in advance!
Offline
Offline
Re: I need a foreach in an article list
Zem nth did the trick!!! Thanks so much iblastoff!!!
Offline
Offline
Pages: 1