Skip to content

Instantly share code, notes, and snippets.

@chasmfiend
Created January 18, 2018 14:37
Show Gist options
  • Save chasmfiend/20779ba7d70f79a8d68561e2de37b02a to your computer and use it in GitHub Desktop.
Save chasmfiend/20779ba7d70f79a8d68561e2de37b02a to your computer and use it in GitHub Desktop.
"Break out" of a parent's containing width to take the full screen of a page w/this nice utility class:
```
.full-width {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
}
```
https://mobile.twitter.com/Una/status/951519740840873984
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment