Skip to content

Instantly share code, notes, and snippets.

@michaelbourne
Created May 2, 2018 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelbourne/32a498a4c185a4c0ec48a3db5c013a88 to your computer and use it in GitHub Desktop.
Save michaelbourne/32a498a4c185a4c0ec48a3db5c013a88 to your computer and use it in GitHub Desktop.
X Theme / Pro Theme Equal Height Columns
(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