Skip to content

Instantly share code, notes, and snippets.

@mikesprague
Created August 11, 2016 07:26
Show Gist options
  • Save mikesprague/b51c599410fc40d9cfca1db7d8a8efde to your computer and use it in GitHub Desktop.
Save mikesprague/b51c599410fc40d9cfca1db7d8a8efde to your computer and use it in GitHub Desktop.
Full width container in limited width parent (credit: 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;
}
@tonygustafsson
Copy link

It creates horizontal scrollbars though :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment