View on GitHub

jQuery-fluidgrid

jQuery plugin to create fluid grid layouts

Download this project as a .zip file Download this project as a tar.gz file

Fluid Grids

Not long ago I needed some fliud grids ala Pinterest, I found on Quora some explantion about how did that work and then wrote this plugin

Example Code

Some style


    

Some code to form the grid, in fact this is just a small version, you can see it working in the full example


  • test item 1
  • test item 2

And at last the javascript, I prefer to load it by the footer. So far the script works best if is launched with the window onload event.


    $(window).on('load', function(){
        $('.grid').fluidGrid({default_item_width:200});
    })