Select Page
<style>

	.flex-row{
		display: flex;
	}

	.flex-col{
	    flex: 1;
	}

</style>

<?php
$i = 0;
$cols = 3;

if($i % $cols == 0): ?>
	<div class="flex-row">
<?php endif; ?>

<div class="flex-col">
	<div class="">
		<h2 class=""></h2>
		<img src="" alt="" class="" />
		<a href="" class=""></a>
		<p class=""></p>
	</div>
</div>

<?php $i++;

if($i % $cols == 0): ?>
	</div>
<?php endif; ?>