Created
May 2, 2018 19:43
-
-
Save michaelbourne/32a498a4c185a4c0ec48a3db5c013a88 to your computer and use it in GitHub Desktop.
X Theme / Pro Theme Equal Height Columns
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($){ | |
$(window).on('ready load resize', function(){ | |
var max = 0, | |
mobile = $(window).width(); | |
$(".equalize .x-column").css('min-height', 'inherit'); | |
if ( mobile > 767 ){ | |
$(".equalize .x-column").each(function(index, el) { | |
if( $(this).outerHeight() > max ){ | |
max = $(this).outerHeight(); | |
} | |
}); | |
$(".equalize .x-column").css('min-height', max); | |
} | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment