monolith920
11/10/2017 - 11:56 AM

Simple Match Height Using One Class

This snippet of code requires BRM IO's matchHeight js plugin. https://github.com/liabru/jquery-match-height

&

Desandro's imagesLoaded js http://imagesloaded.desandro.com/

The plugin uses a single class to match height of content and images with this class.

// Read Description before using! 
jQuery(document).ready(function($){

	// Match Height
	jQuery('body').imagesLoaded(function() {
	    matchHeight();
	});
	function matchHeight() {
	    jQuery('.match').matchHeight();
	}
});