Created
May 23, 2015 10:06
-
-
Save matchaxnb/17d79877d5a0bcda308a to your computer and use it in GitHub Desktop.
Bootstrap row with all cols of same height
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
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