Hi everyone,
I have been experimenting with views to make a portfolio list. It's just a bunch of images in an unordered list which are laid out in a grid pattern with 3 items on each row using css. I have this set up already in umbraco as it's easy using xslt to assign classes etc to items.
However, how do you do this in views?? I can see I can add a class to the ul and to the list wrapper in the settings option next to HTML list. What I really need though is for every third item to have an id of 'last'.
As it stands, I have classes on each images row-1, row-2, row-3 etc. This is great for styling out individual items. However, this doesn't help me to arrange my grid that every third item is the last in the row (id="last") which I will then make have a css margin right of 0.
If I need to add some custom php to the code, where do I put this? Is there a file which corresponds to this specific view? I hope this makes sense.
I have stripped down the html to post here and indicated where I need to insert the id="last":