Created
September 30, 2020 17:51
-
-
Save robdecker/53c2739f06674097eb04a3eea4d8cd01 to your computer and use it in GitHub Desktop.
["Break out" of a parent's containing width to the full width of a page] #css
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
| .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