I’m also interested in seeing any CSS improvements that you people may have for MaxiGallery.
I did some research on what would be the best way to layout the thumbnails. In many cases, thumbnails are built as an unordered list. I also have to support an easy way to define how many thumbnails should be rendered per row (the &pics_per_row parameter). Currently in the default layout, the thumbnails are wrapped in inline divs and a
tag is placed (with clear:both) when the line is to be broken. (based on
this example)
But there is issues in displaying the thumbnails like this when the thumbnails are different in height. Usually the layout breaks and not all lines have the right amount of images.
So, what I’m thinking is that would it be better to make the thumbnails come to an unordered list and if user has set &pics_per_row parameter, it would end the list after each &pics_per_row amount and start a new one.
So it would go like this when pics_per_row is not set (eg. show as many pictures as the container has space for):
<ul class="gallery">
<li><a href...><img... /></a></li>
<li><a href...><img... /></a></li>
<li><a href...><img... /></a></li>
<li><a href...><img... /></a></li>
<li><a href...><img... /></a></li>
<li><a href...><img... /></a></li>
</ul>
And if pics_per_row is set to 3 for example, it would go like this:
<ul class="gallery">
<li><a href...><img... /></a></li>
<li><a href...><img... /></a></li>
<li><a href...><img... /></a></li>
</ul>
<ul class="gallery">
<li><a href...><img... /></a></li>
<li><a href...><img... /></a></li>
<li><a href...><img... /></a></li>
</ul>
I don’t know if that would help to get it any better, but I could test.. What do you guys/gals think?