Skip to content

Instantly share code, notes, and snippets.

@matherton
Created September 12, 2017 15:34
Show Gist options
  • Save matherton/fe5cfc2a5e5b670c59ed7e3ef67ba152 to your computer and use it in GitHub Desktop.
Save matherton/fe5cfc2a5e5b670c59ed7e3ef67ba152 to your computer and use it in GitHub Desktop.
$(window).resize(function() {
var captions = $('.module-main-links .caption'),
height = 0;
captions.each(function() {
var captionHeight = $(this).outerHeight();
if (captionHeight > height) {
height = captionHeight;
}
});
captions.css('height', height+'px');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment