Either you can add a counting variable and make it break the line after a given number of entries, in the loop that displays the images.
PHP Code:
<?php $count = 0; $break = 5; while (/* what ever you do here */) { if ($count++ % $break == 0) { // break the row, or begin new row (</tr><tr>) if you're using a table echo '<div class="line_break"></div>'; } // your other code here... } ?>
Or you can use CSS to make the images automatically jump down when they can't fit the row any more (by setting a max width of the containing element).
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
Last edited by lizciz; 12-11-2009 at 07:51 PM..
|