Skip to content

Instantly share code, notes, and snippets.

@hkirsman
Created June 28, 2013 09:49
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 hkirsman/5883645 to your computer and use it in GitHub Desktop.
Save hkirsman/5883645 to your computer and use it in GitHub Desktop.
Equal height script
jQuery.fn.equalHeight = function() {
var $el = $(this);
var colsHighest = 0;
$el.css('min-height', 0).each(function() {
var height = $(this).height();
if (height > colsHighest) {
colsHighest = height;
}
});
$el.css('min-height', colsHighest);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment