Created
July 18, 2014 21:32
-
-
Save megantaylor/22a355eea1cfff3160cb to your computer and use it in GitHub Desktop.
Calculate the height of the higher column and automatically adjust all other columns to this height.
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
var max_height = 0; | |
$("div.col").each(function(){ | |
if ($(this).height() > max_height) { max_height = $(this).height(); } | |
}); | |
$("div.col").height(max_height); | |
//http://web.enavu.com/tutorials/top-10-jquery-snippets-including-jquery-1-4/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment