--- layout: default title: Shuffle.js FAQ description: Frequently asked questions about Shuffle.js image: /hero.png extraJS: [ "faq.js" ] ---

## FAQs

### Why Does Shuffle leave empty spaces?

The algorithm used to place items does not keep track of empty space nor try to fill them. If you require this functionality, I suggest packery.

### Why are images overlapping?

If the size of your items are dependent on images, they can overlap if shuffle is initialized before all the images have loaded. Check out this demo to see how to fix it.

### What’s the difference between Shuffle and Isotope?

Isotope:

- more layout modes
- more options
- community of users
- commercial use requires a license

Shuffle:

- robust filtering
- slightly smaller
- responsive by default
- sizer element (which packery also has)

They are very similar, but I think Shuffle's filtering and sorting are easier to customize, which is the main reason I created this plugin. Isotope has a much larger community, is battle-tested, and has many stackoverflow answers.

### Padding isn’t working on the shuffle element.

The padding is ignored by Shuffle because it creates complexities with absolute positioning the shuffle-items when they have a percentage width as well as setting the height of the shuffle container because of box-sizing. To fix this, wrap the shuffle element in another element which has the padding on it.

### Can the columns be centered?

Nope. Shuffle is heavily based on columns for layout. You can add “empty” items to achieve a similar effect.

{% comment %}

### Hi

Check yo' self

{% endcomment %}

### Didn't find an answer?

Try looking at the javascript files for the demos or searching the issues on GitHub.