Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Farmatique/ef9ea8dedb1af4c6264a367d9bbba764 to your computer and use it in GitHub Desktop.
Save Farmatique/ef9ea8dedb1af4c6264a367d9bbba764 to your computer and use it in GitHub Desktop.
Full-width section inside limited container
https://css-tricks.com/full-width-containers-limited-width-parents/
.full-width {
margin-left: calc(-100vw / 2 + 500px / 2); // 500 is container width
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