Well i was trying using css to make some columsn instead of the old fashion way.
Wasnt happy with the layout..
But seems that i cant do that. i can make columns tho.
but cant seem to make it increment correctly.
ej
1st $row 2nd $row 3rd $row
--------____--------___--------
Code: Select all
for($i = 0; $i < $rows; $i++) {
for($j = 0; $j < $columns; $j++) {
if(isset($data[$i + ($j * $rows)])) {
$y += 120;
?>
<div style="background:#000000;position:absolute; left:158px; top:<?php echo $offset+$y;?>px; width:230px; height:110px;color:#ffffff"><img src="<?php echo $data[$i + ($j * $rows)];?>" height="110" width="95"></div>
<div style="background:#000000;position:absolute; left:400px; top:<?php echo $offset+$y;?>px; width:230px; height:110px;color:#ffffff"><img src="<?php echo $data[$i + ($j * $rows)];?>" height="110" width="95"></div>
<?
}
}
}
Will show the same data twice
Code: Select all
#this does work .. kinda but will have a stairway effect.
# starts at 158 px for first column but 2nd +300 repeating itself 158px|458px
<div style="background:#000000;position:absolute; left:<?php echo $zOff+$z;?>px; top:<?php echo $offset+$y;?>px; width:230px; height:110px;color:#ffffff"><img src="http://www.opErtunidades.com/<?php echo $data[$i + ($j * $rows)];?>" height="110" width="95"></div>