0

I have added the JQuery plugin Isotopte to my site.

It works but only after the browser resizes. The images just seem to stack up on each other before hand.

My code to is:

$(function(){
$('#isotopecontainer').isotope({
        itemSelector: '.frontitem',
        masonry: {
        }
 });
});

I've tried adding columnWidth as the site suggests but this makes no difference.

Im really not sure what is going on. Can anyone help me out at all?

MeltingDog
  • 14,310
  • 43
  • 165
  • 295

1 Answers1

2

I don't know exactly where your issue is but I got a working solution.

Working solution (JSFiddle)

$(document).ready(function(){
       $('#isotopecontainer').isotope({
        // options
       itemSelector : '.frontitem',
       masonry : {}
       });
    }
);

It has all of your options but I can't seem to find exactly where your code is wrong. I did use the document ready callback that jquery supplies however I don't think that was the issue.

Also make sure you include jquery before isotope.

Shane
  • 184
  • 1
  • 10