Skip to content

Instantly share code, notes, and snippets.

@bogomolov-dev
Created July 26, 2016 05:33
Show Gist options
  • Save bogomolov-dev/71b846c8babb164d7670fc36b4cd323c to your computer and use it in GitHub Desktop.
Save bogomolov-dev/71b846c8babb164d7670fc36b4cd323c to your computer and use it in GitHub Desktop.
Full Width Containers in Limited Width Parents See: https://css-tricks.com/full-width-containers-limited-width-parents/
main {
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.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