EqualHeight

var currentTallest = 0, currentRowStart = 0, rowDivs = new Array(), $el, topPosition = 0; jQuery(container).each(function() { var el = jQuery(this); jQuery(el).height(‘auto’) topPostion = el.position().top; if (currentRowStart != topPostion) { for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { rowDivs[currentDiv].height(currentTallest); } rowDivs.length = 0; // empty the array Read more…