Skip to content

Instantly share code, notes, and snippets.

@Pushplaybang
Created August 10, 2012 01:01
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 Pushplaybang/3309868 to your computer and use it in GitHub Desktop.
Save Pushplaybang/3309868 to your computer and use it in GitHub Desktop.
simple equal heights jQuery function
function bangingHeight(s) {
var maxHeight = 0;
$(s).each(function() {
if($(this).outerHeight() > maxHeight ) {
maxHeight = $(this).outerHeight()
}
});
$(s).height(maxHeight);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment