JavaScript - - By Sam Deering

jQuery Equalize Column Heights

Simple jQuery code snippet to make your column heights equal.

// Equalize column heights
var tallest = 0;
$('#list, #of, #elements')
.each(function(){
	var thisHeight = $(this).outerHeight();
	if (thisHeight > tallest) tallest = thisHeight;
})
.css({
	'overflow': 'auto',
	'height': tallest
});
Sponsors
Login or Create Account to Comment
Login Create Account