I have 30 itens
that will come in alphabetical order.
I need to distribute these items in 3 columns in alphabetical order VERTICAL
.
The problem is that in Bootstrap
, the blocks will marry next to each other causing the items to be in horizontal alphabetical order and not VERTICAL
.
I'll show you what I need:
<div class="row">
<div class="col-md-4">
<span>aa</span>
<span>ab</span>
<span>ac</span>
<span>ad</span>
<span>ae</span>
</div>
<div class="col-md-4">
<span>af</span>
<span>ag</span>
<span>ah</span>
<span>ai</span>
<span>aj</span>
</div>
<div class="col-md-4">
<span>ak</span>
<span>al</span>
<span>am</span>
<span>an</span>
<span>ao</span>
</div>
</div>
My items come from here:
<?php
foreach ($qartie as $bairros => $bairro) {
}
?>