I'm working on putting together my own theme and it's going fairly smoothly, but one thing that I can't seem to figure out is how to make the images display in rows and columns. I'm almost certain that there must be something in the css, but I can't find it.
I studied the default theme carefully, both the album.php file and the css files and I can't find anything that should be throwing it off.
I started my theme based on the simple+ theme. In that theme, the while statements have some extra code that I've been trying to decipher what exactly it does but can't figure it out.
The code looks like this.
`
<?php $x++; endwhile; ?>
<?php $x = 0; while (next_image(false, $firstPageImages)): ?>
<div class="imagethumb">
<a>" title="<?php echo getImageTitle();?>">
<?php printImageThumb(getImageTitle()); ?></a>
</div>
<? if ($x == 2) { ?>
<?php $x = 0;} ?>
<?php $x++; endwhile; ?>
`
The extra code is in the while statements, as well as before and after the clear div. Now, when I add this code to my own theme, it DOES start to separate into columns and rows, but not in a discernible pattern.
I suspect my question is answered in some fairly simple CSS, but I think I reached a gap in my knowledge and I'm not exactly sure what questions to ask to find the answer.
Can someone help?