Created
June 30, 2014 13:57
-
-
Save robertmagnusson/ff7f0fe471b502b47728 to your computer and use it in GitHub Desktop.
Align height on several objects.
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
// Equal height | |
var $box = $('.align-height'); | |
var boxHeight = 0; | |
// Equal heights for the sub menus. | |
$box.each(function() { | |
boxHeight = Math.max($(this).height(), boxHeight); | |
}); | |
$box.height(boxHeight); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment