/ Published in: jQuery
There is also a jQuery plugin
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function equalHeight(group) { tallest = 0; group.each(function() { thisHeight = $(this).height(); if(thisHeight > tallest) { tallest = thisHeight; } }); group.height(tallest); } $(document).ready(function() { equalHeight($("#left,#right,#content")); });
URL: http://www.cssnewbie.com/equal-height-columns-with-jquery/