Skip to content

Instantly share code, notes, and snippets.

@reediredale
Created July 11, 2012 05:41
Show Gist options
  • Save reediredale/3088203 to your computer and use it in GitHub Desktop.
Save reediredale/3088203 to your computer and use it in GitHub Desktop.
Equal Columns Script
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