Created
July 22, 2014 07:58
-
-
Save willwright82/9baf5f540f9770d514b6 to your computer and use it in GitHub Desktop.
Pull-Down Function for bottom alignment
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
//for each element that is classed as 'pull-down', set its margin-top to the difference between its own height and the height of its parent | |
$('.pull-down').each(function() { | |
$(this).css('margin-top', $(this).parent().height()-$(this).height()) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment