Created
June 25, 2014 11:48
-
-
Save sambody/908ca48b8fc063df9a32 to your computer and use it in GitHub Desktop.
Equal height columns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set equal height columns, for background color | |
$.fn.setAllToMaxHeight = function(){ | |
return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) ); | |
} | |
$('.main-col, .sub-col').setAllToMaxHeight() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment