zpArdoise - bad album thumbs align

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

Comments

  • acrylian Administrator, Developer
    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.
  • I'm having the exact same problem with this theme.
    Any solution yet?
  • acrylian Administrator, Developer
    The solution is up to the theme's developer.
  • vincent3569 Member, Translator
    hi

    the basic solution is to shorten titles...
    I will have a look on the 2nd way of acrylian.
  • vincent3569 Member, Translator
    acrylian,
    I think I need some advice.
    I am unable to find the way to solve this issue by clearing the floating.
  • acrylian Administrator, Developer
    You bascially need to put a <br style="clear:both"> (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 "
    "; // an a bit ugly empty div works as well
    $count = '';
    }
    }
    `
    Atention no working code example!

    This way you reset the float after each row so the space is flexible measured after the item with the highest height value (= the one with the longes title). Otherwise each item must have the exact same height which is nearly impossible unless you truncate titles.
Sign In or Register to comment.