Skip to content

Instantly share code, notes, and snippets.

@LubosRemplik
Created December 3, 2013 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LubosRemplik/7767141 to your computer and use it in GitHub Desktop.
Save LubosRemplik/7767141 to your computer and use it in GitHub Desktop.
$(window).resize(function() {
$.each($('.blog-posts'), function(key, value) {
var height = 0;
$.each($('.item', value), function(key2, value2) {
if ($(value2).height() > height) {
height = $(value2).height();
}
});
console.log(height);
$.each($('.item', value), function(key2, value2) {
$(value2).css({'height': height + 'px'});
});
});
}).trigger('resize');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment