Alok Jain Alok Jain - 4 months ago 9x
jQuery Question

equal height columns

I used following JS code to create equal height columns:

var colHeight = Math.max($('.3columngallery .col1').height(), $('.3columngallery .col2').height(), $('.3columngallery .col3').height());
$('.3columngallery .gallery').height(colHeight);

It's working fine in firefox and safari but not in chrome and opera.

Here's the link of the page, where i used this script:


If you are using images inside this container you should use

$(window).load(function ()

instead of

$(function() { 

because images are not loaded in the dom.