最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - jQuery Isotope - Masonry container height is set to 0 (zero) - Stack Overflow

programmeradmin2浏览0评论

I've got the following problem. Isotope sets the height of my container always to 0px.

I checked for floats and other usual problem sources. All seems to be fine.

My class for the to-be arragened elements looks like this:

div#image-area div {
    width: 6.25%;
    height: 6.25%;
}

I've got the following problem. Isotope sets the height of my container always to 0px.

I checked for floats and other usual problem sources. All seems to be fine.

My class for the to-be arragened elements looks like this:

div#image-area div {
    width: 6.25%;
    height: 6.25%;
}
Share Improve this question edited Feb 4, 2013 at 14:25 Ron asked Feb 4, 2013 at 14:17 RonRon 23.6k33 gold badges115 silver badges214 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

Alright, took me ages to figure it out!

Isotope does not support percentual image sizes.

Just choose a static width like 100px and everything's fine!

发布评论

评论列表(0)

  1. 暂无评论