Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Last active November 1, 2018 08:18
Show Gist options
  • Save ABooooo/7fceab13909ff7dcc75d to your computer and use it in GitHub Desktop.
Save ABooooo/7fceab13909ff7dcc75d to your computer and use it in GitHub Desktop.
same height all columns
setTimeout(function(){
var sameHeightTop = $(".subBoxes");
if (sameHeightTop.length !== 0) {
sameHeightTop.each(function () {
var tallest = 0;
var sameHeightChildren = $(this).find(".subBox");
sameHeightChildren.each(function () {
var thisHeight = $(this).height();
if (thisHeight > tallest) {
tallest = thisHeight;
}
});
sameHeightChildren.height(tallest);
});
}
},250);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment