displaying html from a "php foreach" on a fixed number of columns -
i have code:
<?php if(count($this->items)): ?> <section class="itemlist"> <?php foreach ($this->items $item): ?> <...> <?php endforeach; ?> </section>
<...> represents item title, description etc... each item: how can work on css/html make items displayed on fixed number of rows, 3, instead of on unique long column? can help
if can use css3 can use propery -webkit-column-count:3; -moz-column-count:3; column-count:3;
. otherwise have in different way (splitting in php code).
Comments
Post a Comment