Return to Snippet

Revision: 52869
at November 3, 2011 22:24 by b1tstream


Initial Code
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"));
});

Initial URL
http://www.cssnewbie.com/equal-height-columns-with-jquery/

Initial Description
There is also a jQuery plugin

Initial Title
Equal Height Columns (DIVs)

Initial Tags

                                

Initial Language
jQuery