06 Apr Monthly Market Monitor – March 2017 If PDF viewer is not working below, click here to download the PDF. AddThisShare | Facebook Twitter Print Email // run on load so it gets the size: // can't have the same pattern for some reason or it scans the page and makes all the same height. Each row should be separate but it doesn't work that way. $(window).ready(function () { $('.section_Boxes .box .btn').css('visibility', 'visible'); var container = $('.section_Boxes .box'); container.each(function () { var content = $(this).find('a').outerWidth(); $(this).find('a').css({ "left": (container.outerWidth() - content) / 2 }); }); $('.section.section_Boxes').each(function () { var box = $(this).find('.box'); var pgraph = box.find('.box-paragraph'); equalheight(pgraph); }); }); $(window).resize(function () { $('.section.section_Boxes').each(function () { var box = $(this).find('.box'); var pgraph = box.find('.box-paragraph'); equalheight(pgraph); }); }); //Equal height columns equalheight = function (container) { var currentTallest = 0, currentRowStart = 0, rowDivs = new Array(), $el, topPosition = 0; $(container).each(function () { $el = $(this); $($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 currentRowStart = topPostion; currentTallest = $el.height(); rowDivs.push($el); } else { rowDivs.push($el); currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); } for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { rowDivs[currentDiv].height(currentTallest); } }); }