Created
July 11, 2012 05:41
-
-
Save reediredale/3088203 to your computer and use it in GitHub Desktop.
Equal Columns Script
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
function setEqualHeight(columns) | |
{ | |
var tallestcolumn = 0; | |
columns.each( | |
function() | |
{ | |
currentHeight = $(this).height(); | |
if(currentHeight > tallestcolumn) | |
{ | |
tallestcolumn = currentHeight; | |
} | |
} | |
); | |
columns.height(tallestcolumn); | |
} | |
$(document).ready(function() { | |
setEqualHeight($(".container > div")); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment