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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -