Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Isotope — Centered and Fluid/Responsive

I am asking a question about Isotope

It is a great plugin for jQuery.

I have been playing with it for a while now, but I don't know enough about javascript to combine two of the Isotope techniques, responsive Isotope and centered Isotope.

I have sucessfully used the responsive mod and it worked pretty well, except now I need to center the whole thing within a div. The centered layout mode isn't documented as well as the responsive mode, so I am having some trouble getting it to work. Basically the inscructions for the centered layout mode are :

To use this mod, copy the revised methods found in the demos’ page source.

Unfortunately, there are all sorts of javascript things going on in the view source and I don't have enough experience with javascript to pick it out and also combine it with the responsive script I already have working.

Any help would be greatly appreciated.

A site with a working example of what I need.

My site that I am experimenting with.

Works better in Firefox I think.

like image 257
davecave Avatar asked Jan 07 '12 22:01

davecave


1 Answers

Here is an example provided by David DeSandro himself:

http://jsfiddle.net/desandro/P6JGY/6/

like image 64
gang Avatar answered Nov 27 '22 09:11

gang