ZenphotoCMS Forum
zpArdoise - bad album thumbs align - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: zpArdoise - bad album thumbs align (/thread-11397.html)



zpArdoise - bad album thumbs align - Mates-K1 - 2013-10-04

Hi,
if album has a long name (two rows in frontend)and album is leftmost (in frotend = 1. album, 4. album, 7. album,...), in next thumbs row there is only one thumb align to center.

Zenphoto 1.4.5.5
zpArdoise 1.4.5(not only in this build)

Screenshot: http://skaut.zamberk.cz/images/galerie/zp_bug.jpg

Can anybody confirm this? Thanks. Mates




zpArdoise - bad album thumbs align - acrylian - 2013-10-04

Not knowing this theme this is probably coded to have only space for one line of text. There are bascially these ways to get even rows:

  1. Reserve more space for possible more text. Drawback: A lot of empty space if titles are short.
  2. Clear the floating after each row so the space can adjust to the largest title. This is what I would recommend.



zpArdoise - bad album thumbs align - Birken - 2013-12-18

I'm having the exact same problem with this theme.
Any solution yet?




zpArdoise - bad album thumbs align - acrylian - 2013-12-18

The solution is up to the theme's developer.




zpArdoise - bad album thumbs align - vincent3569 - 2013-12-18

hi

the basic solution is to shorten titles...
I will have a look on the 2nd way of acrylian.




zpArdoise - bad album thumbs align - vincent3569 - 2013-12-19

acrylian,
I think I need some advice.
I am unable to find the way to solve this issue by clearing the floating.




zpArdoise - bad album thumbs align - acrylian - 2013-12-19

You bascially need to put a (or clear:left as you probably use that) after each "row". Since ther are no rows you need to count the items until the number of items per row is reached and then reset it.

`
$count = '';
next_album/next_image loop { // don't remember what it is
$count++;
printImageThumb();
if($count == 3) } //the desired number of items per row - depends on the css!
echo "