Pages

Saturday, March 8, 2014

Tutorial Equalize Heights of Divs

var maxHeight = 0;

$("div").each(function(){
   if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }
});

$("div").height(maxHeight);

No comments:

Post a Comment