Created
May 13, 2013 09:48
-
-
Save jklm313/5567251 to your computer and use it in GitHub Desktop.
Untitled
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
| *, *:after, *:before { | |
| margin: 0; | |
| padding: 0; | |
| position: relative; | |
| box-sizing: border-box; | |
| } | |
| html, body { | |
| height: 100%; | |
| } | |
| .box { | |
| height: 200%; | |
| padding-top: 50%; | |
| border: 6px solid green; | |
| } | |
| .box { | |
| background: | |
| radial-gradient( | |
| #222, | |
| red | |
| ) | |
| top left fixed; | |
| } | |
| .box+.box { | |
| background: | |
| radial-gradient( | |
| #222, | |
| lightblue | |
| ) | |
| top left fixed; | |
| } | |
| .box+.box+.box { | |
| background: | |
| radial-gradient( | |
| #222, | |
| lightgreen | |
| ) | |
| top left fixed; | |
| } | |
| .content { | |
| height: 50%; | |
| width: 100%; | |
| top: 50%; | |
| position: absolute; | |
| background: rgba(0,0,0,1); | |
| border: 3px solid black; | |
| } |
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
| <div class="box"> | |
| <div class="content"></div> | |
| </div> | |
| <div class="box"> | |
| <div class="content"></div> | |
| </div> | |
| <div class="box"> | |
| <div class="content"></div> | |
| </div> |
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
| {"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment