Leveller

A jQuery plugin for equalizing element heights.

The Problem

These tiles vary in height, making them difficult to scan visually.

Try This First

Before using this plugin, see if flexbox might solve the problem.

.columns, .column, .tile {
  display: flex;
}

.columns {
  flex-wrap: wrap;
}

.column, .tile {
  flex-direction: column;
}

.tile, .tile-main {
  flex: 1;
}

When All Else Fails

Maybe you inherited someone else’s code. Maybe you’re still supporting some ancient browser. Or maybe that frame­work every­one tweeted about last month doesn’t want to play nice with your adjust­ments.

In those cases, Leveller can help.

var $tiles = $('#example .tile');

$tiles.leveller({
  cssSelector: '.tile-main'
});

$(window).resize(function(){
  $tiles.leveller();
});

Please level responsibly.