i have for example:
<?php $array = array(aaa,bbb,ccc,ddd,eee,fff,ggg,hhh,iii,jjj,kkk,lll,mmm,nnn, 111,222,333); ?>
and if i use foreach:
foreach($array as $a){
echo $a . '<br />';
}
this show me data:
aaa
bbb
ccc
ddd
eee
fff
...
111
222
333
but i would like set max positions in height – and if for example data is too long then this should be in new column:
aaa eee ... 111
bbb fff ... 222
ccc ... ... 333
How is the best way for this? I can use DIV or TABLE.
You will need to add a counter in your php, where it creates a new
divelement for each three elements and float all thedivelements to the left.PHP:
and in your CSS, you will need: