Created
April 21, 2021 14:55
-
-
Save domosedov/5b298050831f07ded08064a517df1685 to your computer and use it in GitHub Desktop.
Full Width Containers in Limited Width Parents
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
/* https://css-tricks.com/full-width-containers-limited-width-parents/ */ | |
.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