67 posts
  • Exclusive Author
  • Has been a member for 0-1 years
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?

37 posts
  • Europe
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Grew a moustache for the Envato Movember competition
  • Has been a member for 2-3 years
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
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.

396 posts
  • Elite Author
  • Bought between 10 and 49 items
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • Grew a moustache for the Envato Movember competition
  • Referred between 10 and 49 users
  • United Kingdom
Jaynesh says

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

67 posts
  • Exclusive Author
  • Has been a member for 0-1 years
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
  • Exclusive Author
  • Has been a member for 0-1 years
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
  • Exclusive Author
  • Has been a member for 0-1 years
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