Return to Snippet

Revision: 46319
at May 17, 2011 13:22 by garciaon


Initial Code
$(function(){
	jQuery.fn.equalHeight = function () {
		var tallest = 0;
		this.each(function() {
			tallest = ($(this).height() > tallest)? $(this).height() : tallest;
		});
		return this.height(tallest);	
	}
 
	//Now you can call equalHeight
	$(".content-column").equalHeight();
});

Initial URL


Initial Description
Pega um conjunto de elementos e deixa todos da mesma altura.

Initial Title
Deixar na mesma altura

Initial Tags


Initial Language
jQuery