Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save inwardmovement/6f45914eaa3f68dc07389ac5a0f0bc4c to your computer and use it in GitHub Desktop.
Save inwardmovement/6f45914eaa3f68dc07389ac5a0f0bc4c to your computer and use it in GitHub Desktop.
Bypass a parent's width to take the full width
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