Created
April 30, 2018 19:25
-
-
Save hachesilva/00824bedcd8d64f87853fdde7bc32cfe to your computer and use it in GitHub Desktop.
"Break out" of a parent's containing width to take the full screen of a page w/this nice utility class
This file contains hidden or 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
// Source: https://twitter.com/Una/status/951519740840873984 | |
.full-width { | |
width: 100vw; | |
position: relative; | |
left: 50%; | |
right: 50%; | |
margin-left: -50vw; | |
margin-right: -50vw; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment