Skip to content

Instantly share code, notes, and snippets.

@willwright82
Created July 22, 2014 07:58
Show Gist options
  • Save willwright82/9baf5f540f9770d514b6 to your computer and use it in GitHub Desktop.
Save willwright82/9baf5f540f9770d514b6 to your computer and use it in GitHub Desktop.
Pull-Down Function for bottom alignment
//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