Created
December 27, 2016 01:48
-
-
Save fabiorochafg/c634021ce9be05a8d9e65e730bb2084f to your computer and use it in GitHub Desktop.
jQuery solution to equal columns heights.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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