Skip to content

Instantly share code, notes, and snippets.

@fabiorochafg
Created December 27, 2016 01:48
Show Gist options
  • Save fabiorochafg/c634021ce9be05a8d9e65e730bb2084f to your computer and use it in GitHub Desktop.
Save fabiorochafg/c634021ce9be05a8d9e65e730bb2084f to your computer and use it in GitHub Desktop.
jQuery solution to equal columns heights.
$(window).load(function(){
var altura = 0;
$(".item").each(function() {
var alturaElemento = $(this).height();
if (altura < alturaElemento) {
altura = alturaElemento;
}
});
$(".item").height(altura);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment