// After the page loads, set the margin-bottom to 0px for the last promoBox on the page. // The last promoBox margin-bottom may interfere with the styling of the container in some cases and give it an uneven look. window.onload = function () { var lastChild = null; var promoBoxes = $('.promobox-wrapper .promobox, .promobox-wrapper .promobox-image'); if (promoBoxes.length > 0) { lastChild = $(promoBoxes[promoBoxes.length - 1]); lastChild.css("margin-bottom", "0px"); } }