Skip to content

Instantly share code, notes, and snippets.

@teknikqa
Created July 25, 2016 13:13
Show Gist options
  • Save teknikqa/92795b807b5337865310e7f49ba1ffec to your computer and use it in GitHub Desktop.
Save teknikqa/92795b807b5337865310e7f49ba1ffec to your computer and use it in GitHub Desktop.
CSS to create a full width container inside a fixed width container. Works on IE9 and above.
<div class="container" style="width: 750px; margin: 0 auto;">
<div class="row-full">
--- Full width container ---
</div>
</div>
.row-full{
width: 100vw;
position: relative;
margin-left: -50vw;
height: 100px;
margin-top: 100px;
left: 50%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment