Created
March 3, 2017 09:29
-
-
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.
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
.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