Last active
May 13, 2019 06:36
-
-
Save wickywills/b9b8df6f1880a743053f8b17c96bba54 to your computer and use it in GitHub Desktop.
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://coderwall.com/p/hkgamw/creating-full-width-100-container-inside-fixed-width-container | |
``` | |
.row-full{ | |
width: 100vw; | |
position: relative; | |
margin-left: -50vw; | |
height: 100px; | |
margin-top: 100px; | |
left: 50%; | |
} | |
``` | |
Another option: | |
https://css-tricks.com/full-width-containers-limited-width-parents/ | |
``` | |
.full-width-row { | |
margin-left: calc(-100vw / 2 + 500px / 2); | |
margin-right: calc(-100vw / 2 + 500px / 2); | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment