Skip to content

Instantly share code, notes, and snippets.

@JarrydTrokis
Created March 3, 2017 09:29
Show Gist options
  • Save JarrydTrokis/2c5a34f282bc72603b40ffe441a8f0eb to your computer and use it in GitHub Desktop.
Save JarrydTrokis/2c5a34f282bc72603b40ffe441a8f0eb to your computer and use it in GitHub Desktop.
This is a little snippet from RDW that allows a box to 'break out' of it's max-width container.
.container {
max-width: 1024px;
margin: 0 auto;
}
.breakout {
position: relative;
left: 50%;
transform: translate(-50%, 0);
width: 100vw;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment