How to make sure there is no empty gaps with divs and isotope

一笑奈何 提交于 2019-12-01 12:07:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!