Equal columns

I found this useful script for setting equal column height for divs.
But is dosnt account for the padding inside the divs.

Does anybody know how to make it calculate the toal height including the padding from the heighest column?
Or does anybody have a script that they have used for at simular setup?


$('#leftcolumn, #content').equalizeHeights();

(function($){
	
$.fn.equalizeHeights = function(){
    return this.height(
        Math.max.apply(this,
            $(this).map(function(i,e){
                return $(e).height()
            }).get()
        )
    )
}
	
})(jQuery);


Thank you very much.
I will look into the thread :slight_smile:

Cheers

You nailed it for me. It was just what i was looking
It´s fantastic that i dont even have to use javasript or jquery :slight_smile:

Great tutorial - i would advice others to take a look a the thread above