Created
February 7, 2010 02:17
-
-
Save sgraber/297135 to your computer and use it in GitHub Desktop.
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
// max height for columns using jQuery | |
// Unfortunately css does not support this natively, sometimes when creating column based | |
// layouts it looks so much better if the columns aligned by height, so here is the easy way | |
// of doing this. | |
var max_height = 0; | |
$("div.col").each(function(){ | |
if ($(this).height() > max_height) { max_height = $(this).height(); } | |
}); | |
$("div.col").height(max_height); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment