Is their a way in a while loop to assign a variable to a class in a div, for every third item in a while loop. I am using the blueprint structure and the third div is at the
If you want to do this on the client-side it can be done with CSS3 (add JS for older browsers [DOMAssistant + Selectivizr]).
CSS: div.imageBorder:nth-child(3n) { /* style attributes will be applied to every 3rd div */ }
div.imageBorder:nth-child(3n) { /* style attributes will be applied to every 3rd div */ }