Created
September 28, 2009 12:27
-
-
Save bclennox/195393 to your computer and use it in GitHub Desktop.
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
// set the parent container's height to the height of its tallest child | |
var $container = $("..."); | |
var max_height = 0; | |
$container.children("section").each(function (){ | |
max_height = Math.max(max_height, $(this).height()); | |
}); | |
$container.height(max_height); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment