Last active
November 9, 2016 22:30
-
-
Save Yelakelly/e794485d3224f7514d98ce77ccccceb1 to your computer and use it in GitHub Desktop.
Equal column height - jQuery snippet
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
function equalColumnHeight(_item){ | |
var minHeight = _item.first().height(); | |
_item.each(function(){ | |
_height = $(this).height(); | |
if(minHeight < _height){ | |
minHeight = $(this).height(); | |
} | |
}); | |
$(_item).height(minHeight) + $(_item).css('padding-bottom'); | |
} | |
// equalColumnHeight($('.feedback__col')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment