Placing varied height thumbnails in a straight row

My thumbnails are a constant width, but vary in height. When a shorter image appears on a row, on the row that proceeds it the image below that short image will push up and fill the void that is created. (I'm hoping that makes sense).

So to get around this I used the following code:

`
<?php while (next_album()): ?>

(Code to call thumb)

<?php next_album ?> (Code to call thumb)

<?php next_album ?> (Code to call thumb)

<?php endwhile; ?>

`
The above code works in calling the images in a straight row, but I'm afraid it might be causing another problem on my page. My question is should I be using if/else statements every subsequent time I call the thumbnail? Is there a problem with calling `next_album` if I've run out of albums to call? I'm thinking something like `if (next_album()) {Code to call thumb;} else {endwhile;}` Or am I over complicating this and Zenphoto has a built in option for this kind of thing?

Thanks

Comments

Sign In or Register to comment.