Created
May 26, 2015 20:44
-
-
Save ayarse/617ecbe00533b3895e42 to your computer and use it in GitHub Desktop.
Give the height of first div to all consecutive divs in an element that has class .equalize-by-first
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
$(window).load( function() { | |
$('.equalize-by-first > div').height(function() { | |
if( $(this).index() !== 0 ) { | |
var zHeight = $('.equalize-by-first > div:first-child').outerHeight(); | |
return zHeight; | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment