Skip to content

Instantly share code, notes, and snippets.

@WebFikirleri
Created July 10, 2013 12:43
Show Gist options
  • Save WebFikirleri/5965975 to your computer and use it in GitHub Desktop.
Save WebFikirleri/5965975 to your computer and use it in GitHub Desktop.
jq: equalHeights
(function(a){a.fn.equalHeights=function(c,b){tallest=(c)?c:0;this.each(function(){if(a(this).height()>tallest){tallest=a(this).height()}});if((b)&&tallest>b){tallest=b}return this.each(function(){a(this).height(tallest).css("overflow","auto")})}})(jQuery);
$(function() {
$('.eqH').equalHeights();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment