Last active
September 3, 2015 12:05
-
-
Save rachellawson/7ca60995a43bdf14f9cd to your computer and use it in GitHub Desktop.
to use <p class="wide">something</p>
This file contains hidden or 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
| //add <p class="wide"> to make a <p> stretch a grey background across full width | |
| .wide { | |
| background-color: #aaa; | |
| position: relative; | |
| padding: 20px 0; | |
| } | |
| .wide:before, | |
| .wide:after { | |
| content: ' '; | |
| background-color: #aaa; | |
| position: absolute; | |
| display: compact; | |
| width: 9999px; | |
| height: 100%; | |
| } | |
| .wide:before { | |
| left: -9999px; | |
| top: 0px; | |
| } | |
| .wide:after { | |
| top: 0px; | |
| right: -9999px; | |
| } | |
| //we need to stop the wide banners :before and :after making the page to wide - hide overflow | |
| .l-page { | |
| width: 100%; | |
| overflow-x: hidden; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
updated to very wide sideblobs just for @seutje ;-)