In a website I’m working on i have a few galleries. Most of them work fine but one of them is completely messed up because of the different heights of the thumbnails and I have no idea how to solve it. And probably the same will happen to the other galleries when other pictures with different sizes will be added
This is the page I’m talking about. Any help would be highly appreciated.
That’s strange, I’ve tested it with Chrome Inspector on your page and everything was fine.
Another thing you can do, add this to ul.album li definition:
min-height: 165px;
It will set all photos same height and fix the floating
Again thank you for the reply. Tried that one as well, but still nothing. I guess there is something completely wrong in the structure anyway because in FF the entire gallery is messed up. It is as if FF is not respecting the % width
I see now, you’ve added 135px min-height but this is not enough
Make 160px or more to see an effect
Edit: I’ve checked in latest Firefox and there is everything fine now even with 135px. But in Chrome gallery is still messed up, you should increase min-height up to 160px for Chrome
Hi Ralph. Thank you for that. I have adjusted that and that works indeed great, but do you have an idea why the 22% width is not respected in FF? In Chrome everythings works fine now but in FF (and IE) it is running out of the parent
The problem is that you were running into a float snag due to the uneven height of the list items. You should not have been floating and should have been display:inline-block’ing as per Raphs suggestion. Any attempts at equalizing the height would be a band-aid fix FYI.
Hi Ryan thanks for the reply.I have adjusted that after Ralph mentioned it, I cleared the cache several times but it is still floating out. Or is it just me still seeing it that way?