/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var maxHeight = 0; $("div").each(function(){ if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } }); $("div").height(maxHeight);
URL: http://css-tricks.com/snippets/jquery/equalize-heights-of-divs/