Created
November 8, 2012 12:51
-
-
Save felquis/4038620 to your computer and use it in GitHub Desktop.
Gradient background from black to transparent
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
/** | |
* Gradient background from black to transparent | |
*/ | |
body { | |
background: url(http://sphotos-a.ak.fbcdn.net/hphotos-ak-ash4/398156_269511963103640_1888402038_n.jpg) 0 0 no-repeat; | |
background-size: 100% 100%; | |
} | |
.ofelquis { | |
background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));code | |
} | |
.ofelquis, html, body { | |
width: 100%; | |
height: 100%; | |
display: block; | |
position: absolute; | |
top: 0; | |
left:0; | |
margin: 0; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div class="ofelquis"></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
{"view":"split","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