Skip to content

Instantly share code, notes, and snippets.

@matchaxnb
Created May 23, 2015 10:06
Show Gist options
  • Save matchaxnb/17d79877d5a0bcda308a to your computer and use it in GitHub Desktop.
Save matchaxnb/17d79877d5a0bcda308a to your computer and use it in GitHub Desktop.
Bootstrap row with all cols of same height
jQuery('.row-same-height').each(function(i, j)
{
maxHeight = 0;
jQuery(j).children('[class*="col-"]').each(function(k, l)
{
if (jQuery(l).height() > maxHeight) {
maxHeight = jQuery(l).height();
}
});
jQuery(j).children('[class*="col-"]').each(function(k, l) {
jQuery(l).height(maxHeight);
}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment