Home › Forums › CSS › Test environment: How do you recommend in dealing with misalignment due to varied product name? › Re: Test environment: How do you recommend in dealing with misalignment due to varied product name?
July 16, 2013 at 11:56 am
#143124
TheDoc
Member
This might not be the best markup, but the JS should give you a pretty solid idea of what to do: http://codepen.io/ggilmore/pen/247c888338937568d4642d8eb857f74a
In case Codepen ever goes down:
var largestHeight = 0;
$(‘.box’).each( function() {
var box = $(this);
var boxHeight = box.height();
if( boxHeight > largestHeight ) {
largestHeight = boxHeight;
}
});
$(‘.box’).height(largestHeight);