Skip to content

Instantly share code, notes, and snippets.

@benlwilliams
Created August 8, 2013 15:08
Show Gist options
  • Save benlwilliams/6185437 to your computer and use it in GitHub Desktop.
Save benlwilliams/6185437 to your computer and use it in GitHub Desktop.
Remove bottom margin spacing of elements at the bottom of modules as solution to worrying about doubling up on bottom margins of elements plus bottom padding of modules. http://css-tricks.com/spacing-the-bottom-of-modules/
.module > *:last-child,
.module > *:last-child > *:last-child,
.module > *:last-child > *:last-child > *:last-child {
margin: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment