JSFiddle - React, Tailwind, and code Playground
by fredrik
JavaScript
$(".row-fluid").each(function(index, element) {
var cols = $(element).find('[class*=span]'),
compareHeight = 0,
colHeight = 0;
if (cols.eq(0).hasClass('span4')) {
return;
}
cols.each(function (index, element) {
colHeight = $(element).outerHeight(true);
compareHeight = colHeight > compareHeight ? colHeight : compareHeight;
});
cols.css('marginTop', function () {
return compareHeight - $(this).height();
});
});