$.fn.equalHeight = function () {
var height = 0,
reset = $.browser.msie ? "1%" : "auto";
return this.css("height", reset).each(function () {
height = Math.max(height, this.offsetHeight);
}).css("height", height).each(function () {
var h = this.offsetHeight;
if (h > height) {
$(this).css("height", height - (h - height));
}
});
};
.. works great in Firefox and even the crappy IE6 but not Webkit (Safari, Chrome). How do I fix it?
Many thanks