Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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?

#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);