67 posts
  • 1 Year of Membership
  • Exclusive Author
DesignLinks
says

Hey,

Hope u people would be fine. I’m implementing isotope plugin in one of my themes. But for some reason plugin is NOT working as expected. I’ve spent literally hours on it but even the most basic example gives the same issue. Here is the code with basic demo: http://codepen.io/anon/pen/BsyLA

Its a 3 column layout, every dark box has a right margin of 35px except third entry of each row. I want masonry style applied, but want it to show all three columns. Currently its showing only two columns and layout seems broken. Just unable to fiqure what the issue infact.

Can u people help me out?

57 posts
  • Elite Author
  • Trendsetter
  • Author Level 8
  • Collector Level 3
+4 more
ab-themes
says

If you use gutter don’t use margin on element.. :)
This way you have double gutter, one with Isotope and one via css.

516 posts
  • Super Copyright Ninja
  • Weekly Top Seller
  • Elite Author
  • Author Level 8
+8 more
Jaynesh
says

I changed column width to 1. Take a look now.

67 posts
  • 1 Year of Membership
  • Exclusive Author
DesignLinks
says

If you use gutter don’t use margin on element.. :)
This way you have double gutter, one with Isotope and one via css.

Thnx for reply. I tried it already, but if i remove CSS margin and keep gutterWidth there is no horizonal margin b.w entries, check this: http://codepen.io/anon/pen/dnujc

67 posts
  • 1 Year of Membership
  • Exclusive Author
DesignLinks
says

I changed column width to 1. Take a look now.

yeah it works, but quite strange, did’nt understand the logic behind it.

67 posts
  • 1 Year of Membership
  • Exclusive Author
DesignLinks
says

i think i’ve found the patch: https://gist.github.com/Huskie/2574891

it works with the exisiting code, this code is taken from official masonry website SOURCE CODE here: http://isotope.metafizzy.co/custom-layout-modes/masonry-gutters.html#insert

just wondering why they did’nt explicitly mentioned this patch code or have’nt added this patch in original script.

by
by
by
by
by
by