问题
I'm trying to create a grid layout at http://www.gablabelle.com/.
I have multiple divs floating with isotope and I wonder why there is some empty spaces and why the floating divs are not filling the gaps.
Same problem as here: How to avoid gaps using Isotope with Masonry layout
Many thanks for your time and help.
回答1:
If your items are in a certain order which you don't want to "destroy" by calling the shuffle method, this will be inevitable. Then, even when shuffling, you can't guarantee the type of fit you want with some elements spanning two columns. You might be able to leverage this plugin instead but it's a very different logic.
来源:https://stackoverflow.com/questions/11812818/how-to-make-sure-there-is-no-empty-gaps-with-divs-and-isotope