I have the following construct in my HTML document:
<div class="content"> <section class="column"></section> <aside class="column"></aside> </div> And I want to match the heights of the section and aside to the height of the tallest of the two. I have the following script, but it's not working, any ideas:
function unifyHeights() { var maxHeight = 0; $('div.content').children('.column').each(function(){ var height = $(this).outerHeight(); if ( height > maxHeight ) { maxHeight = height; } }); $('.column').css('height', maxHeight); }
heightgets assigned? DoesmaxHeightincrease?