integrating jquery masonry into a zurb foundation grid

后端 未结 1 1137
时光取名叫无心
时光取名叫无心 2021-02-06 04:36

I\'m having issues integrating masonry with a Foundation grid layout. Essentially with identical width images with varying height, the masonry works as expected but at certain

1条回答
  •  隐瞒了意图╮
    2021-02-06 05:17

    To answer your question about why your issue is happening: Unfortunately since integrating masonry and frameworks can be tricky since both are attempting to control the image in completely different ways (Foundation wants to resize and masonry wants to reposition). The best way to tackle this issue is to use a foundation container as the masonry container, the images inside will not resize, but will reposition within the fluid container while centering the container to avoid awkward margin issues which appear on the right-side of containers when images cannot be placed into an extra column.

    === UPDATE ===

    I updated the code base with the most up-to-date Foundation version at the time of this update (5.0.2) in this github repository if you'd like to use it.

    0 讨论(0)
提交回复
热议问题