Created
March 29, 2020 12:45
-
-
Save inwardmovement/6f45914eaa3f68dc07389ac5a0f0bc4c to your computer and use it in GitHub Desktop.
Bypass a parent's width to take the full width
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
https://twitter.com/Una/status/951519740840873984 | |
.full-width { | |
position: relative; | |
width: 100vw; | |
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