67 posts
  • Sells items exclusively on Envato Market
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?

47 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Located in Europe
  • Has collected 50+ items on Envato Market
+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.

443 posts
  • Helped several times protecting Envato Market against copyright violations
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Sells items exclusively on Envato Market
+7 more
Jaynesh says

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

67 posts
  • Sells items exclusively on Envato Market
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
  • Sells items exclusively on Envato Market
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
  • Sells items exclusively on Envato Market
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