Well, I think I'm a little late, you can see a button that fixes the height of the second table, here:
http://jsfiddle.net/Ksb2W/54/
You can put this line of code in your document.ready function, and it should do the trick:
$(function(){ $('#c').attr('height', $('#b').css('height')); });
It is also important to change the CSS for the <td> elements with this property:
box-sizing: border-box;
Here is a reliable solution that will match all row heights from 2 tables specified in the id table. There are 4 lines in the document.ready function, there is no need to directly modify css:
$('td').css('box-sizing','border-box'); $('#t2').children().children().each(function(i, value) { $(this, ':nth-child(1)').attr('height', $('#t1').children().children(':nth-child(' + parseInt(i + 1) + ')').css('height')); });
See the fiddle here: http://jsfiddle.net/Ksb2W/55/
jeffery_the_wind
source share