Last active
January 20, 2016 04:12
-
-
Save jordanneenan/8da5be686a73995120d1 to your computer and use it in GitHub Desktop.
Match height of elements
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
//match height of elements | |
function matchHeight($element) { | |
var heighest = 0; | |
$element.each(function () { | |
var elemHeight = $(this).outerHeight(); | |
if (elemHeight > heighest) { | |
heighest = elemHeight; | |
} | |
}); | |
$element.css('height', heighest); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment