ZenphotoCMS Forum
Thumbnail view is messy with landscape and vert. together - 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: Thumbnail view is messy with landscape and vert. together (/thread-547.html)



Thumbnail view is messy with landscape and vert. together - rpkane - 2006-06-03

One of my sites is an art gallery, and the artist doesn't want them cropped . So I've got vertically oriented thumbnails and horizontal thumbnails somehow throwing each other off and creating a bunch of unnecessary and distracting whitespace. Any idea how to fix this?

Here's the site.




Thumbnail view is messy with landscape and vert. together - trisweb - 2006-06-04

Make each box a square of the right size (width of the landscapes) and center them either vertically or horizontally. Centering can be tricky in CSS, but not terrible. Alternatively, you could use the Zenphoto getSize... functions to apply different styles to each.




Thumbnail view is messy with landscape and vert. together - jackdaw - 2008-07-19

This is an old post, but the comment of trisweb made me think about centering the thumbs again...

Suddenly I'm getting annoyed by the fact that the thumbs on my site (not squared) are centered horizontally but not vertically. Could this 'getSize...' function trisweb mentioned be a solution for this?

It's tricky. I've seen it work on other sites, but in the source of those pages each 'fysically' gets a width and height and after that the vertical centering is done with css. Without those values it's impossible to achieve the vertical centering because there is no reference, am I right?