Skip to content
rucksack.js arranges your elements into a proper beautiful arrangement in a given width constraint.
Find file
New pull request
Latest commit b4ae8d3 @heroic Merge pull request #3 from redler/patch-1
parseInt() radix
Failed to load latest commit information.
rucksack.js Radix, better safe than sorry.


Rucksack is a jquery plugin to arrange elements that can fit in the given width. It relies on the knapsack algorithm.


    width: 'width to fit in. defaults to 960px',
    class: 'class name to be given to the div that will contain the elements of one row. defaults to rucksack'


Here's a working example by @omgmog

Another example by ctcherry


1) gauravsc

Something went wrong with that request. Please try again.