You can try using the css nth-child selector.
#container:nth-child(3n+0) { margin-left: 0; } #container:nth-child(3n+3) { margin-right: 0; }
This code may require several settings, 3n is how often, so every 3. The number after + starts when it starts
source share