I’m trying to create a grid layout at http://www.gablabelle.com/.
I have multiple divs (images) with float: left; property and I wonder why there is some empty spaces and why the floating divs are not filling the gaps.
Many thanks for your time and help.
UPDATE: I now use jQuery isotope but still have gaps… any idea?
That’s just how floating works. Those gaps are there because elements float after another breaks to a new line. It doesn’t fill the space above.
If you want an uneven grid effect then you’d need to use a javascript solution where you are setting absolute positions. I’d recommend the masonry plugin, I think the before/after example on the homepage shows the problem you are having and the solution you want.