Hi,
I am trying to create equal height block grids, I found several posts on the same toppic and found some great JS. However, it not workingas it should just jet.
See site test.dok1810.nl
Printscreen off problem: https://prnt.sc/fq0t00
The javascript does create equal block grids, but the text is subseeding the block when you scale down to small screens. This is the JS i used:
jQuery(document).ready(function($){
var max = 0;
$(".x-block-grid-item").each(function(index, el) {
if( $(this).height() > max ){
max = $(this).height();
}
});
$(".x-block-grid-item").css(‘height’, max);
});
I also found a post in which someone sudjected this JS, but that doesnt fix the problem:
(function($){
$(window).on(‘load resize’, function(){
var max = 0;
$(".x-block-grid-item").each(function(index, el) {
if( $(this).height() > max ){
max = $(this).height();
}
});
$(".x-block-grid-item").css(‘height’, max);
});
})(jQuery);
Please help :).