Add style on every third entry Trying to add entries in a visual array on my homepage.
Problem is that I need a special class on the last item in every row.
col_last

Trying to get my head around how to automate this, in order to avoid "special entries" for these. 

Any ideas?

{% for item in craft.entries.section('services').orderBy('postDate asc').all() %}
    &lt;div class="clear bottommargin-sm"&gt;&lt;/div&gt;
    &lt;div class="col_one_third *col_last*"&gt;
        &lt;div class="feature-box fbox-small fbox-plain" data-animate="fadeIn"&gt;
            &lt;div class="fbox-icon"&gt;
                &lt;a href="#"&gt;&lt;i class="icon-{{ item.serviceIcon }}"&gt;&lt;/i&gt;&lt;/a&gt;
            &lt;/div&gt;
            &lt;h3&gt;{{ item.title }}&lt;/h3&gt;
            &lt;p&gt;{{ item.serviceTagline }}&lt;/p&gt;
        &lt;/div&gt;
    &lt;/div&gt;
{% endfor %}
You can cycle your loop.index0 property if you really need to add a class 

{{ cycle(['first', 'second', 'last'], loop.index0) }}


If the other elements don't need a class insert an empty value ''

You can as well check for a specific value of your loop.index0

However if you just want to add certain style attributes you can use the nth selector