Clive Portman: code

Clearing different heights with Bootstrap and Craft

Used when you have different heights in Bootstrap and can be seen in action here.

{% if loop.index is divisibleby(4) %}<div class="clearfix"></div>{% endif %}

Can also be used with combinations of visible- to behave differently if needed:

{% if loop.index is divisibleby(4) %}<div class="clearfix visible-sm"></div>{% endif %}