Skip to content

Instantly share code, notes, and snippets.

@mythmon
Created December 7, 2012 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mythmon/4229894 to your computer and use it in GitHub Desktop.
Save mythmon/4229894 to your computer and use it in GitHub Desktop.
$('.card-grid').each(function() {
var $cards = $(this).children('li');
var max = 0;
$cards.each(function() {
var h = $(this).height();
if (h > max) {
max = h;
}
});
$cards.height(max);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment