Created
June 27, 2013 11:47
-
-
Save davidpaulsson/5875852 to your computer and use it in GitHub Desktop.
Equalize heights of div elements
This file contains hidden or 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
var maxHeight = 0; | |
$('div').each(function(){ | |
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } | |
}); | |
$('div').height(maxHeight); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment