Home › Forums › CSS › Help, How do I create an equal columns? › Re: Help, How do I create an equal columns?
September 3, 2012 at 3:11 am
#108952
Member
// using jquery
// add class ‘.eqheight’ on each columns
function EqHeight()
{
var tallestHeight = 0;
$(‘#container .eqheight’).each(function () {
var bigHeight = $(this).height();
if (bigHeight > tallestHeight) {
tallestHeight = bigHeight;
// alert(tallestHeight);
}
});
$(‘#container .eqheight’).css(‘height’, tallestHeight);
}
// (‘_ ‘) Happy Coding….