Created
July 25, 2016 13:13
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container" style="width: 750px; margin: 0 auto;"> | |
<div class="row-full"> | |
--- Full width container --- | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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