Skip to content

Instantly share code, notes, and snippets.

@robinbastien
Forked from andyford/jquery.equalheights.js
Created June 25, 2013 14:28
Show Gist options
  • Save robinbastien/5858893 to your computer and use it in GitHub Desktop.
Save robinbastien/5858893 to your computer and use it in GitHub Desktop.
/*!
* equalHeights jQuery Plugin
*/
(function($){
$.fn.equalHeights = function() {
var tallest = 0,
current = 0;
this.each(function(){
current = $(this).height();
if(current > tallest) {
tallest = current;
}
});
return this.height(tallest);
};
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment