I have a list of items that are floated left with a 20px right margin. Every 4th item does not have a right margin, therefore, the list items line up into 4 columns. I'm doing this by ussing the CSS nth-child(4n)
selector for the list items
That works all fine and dandy, then I decided to apply filtering via the jquery isotope plugin, which messed things up a bit. Every 4th item still does not have right margin, but this applies to every item in the list.
What I need to do is figure out to find the 4th child on the screen, and apply the CSS rules. I'm sure this is probably done by some other java.
If showing any of the code, CSS HTML, or jQuery, would be helpful, let me know what. Any help would be greatly appreciated.