Skip to content

Instantly share code, notes, and snippets.

@alyssawilliams
Last active July 21, 2020 22:15
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 alyssawilliams/bc918d1ed7303e3064e95bfd575bf02d to your computer and use it in GitHub Desktop.
Save alyssawilliams/bc918d1ed7303e3064e95bfd575bf02d to your computer and use it in GitHub Desktop.
// Using negative margins to allow a child container inside a parent container to display it's contents full width
.padded-parent-container {
padding: 0 25px;
}
.full-width-child {
margin: 0 -25px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment