I am having trouble matching the height of a div after the loading of images. it gets the height of the tallest div, however it seems to get it before the images are loaded. is there any way around this? here is what I have so far:
function matchColHeights(col1, col2) {
var col1Height = $(col1).height();
alert('col1 '+col1Height);
var col2Height = $(col2).height();
alert('col2 '+col2Height);
if (col1Height < col2Height) {
$(col1).height(col2Height);
} else {
$(col2).height(col1Height);
}
}
$(document).ready(function() {
matchColHeights('#leftPanel', '#rightPanel');
});
here is a link to where it is being ran: http://www.tigerstudiodesign.com/blog/