Created
January 14, 2013 05:14
-
-
Save marcialca/4527901 to your computer and use it in GitHub Desktop.
[CSS] Faux Gradient using an Image and CSS
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
| From: http://webdesign.tutsplus.com/tutorials/visuals/quick-tip-using-images-as-fullscreen-faux-gradient-backgrounds/ | |
| 1. Use a 300x300 img | |
| 2. Apply a gaussian blur with a radious of 40 or more | |
| 3. Apply the CSS | |
| body{ | |
| margin: 0; | |
| background: url('img/bg.jpg'); | |
| background-size: 100% 100%; | |
| background-attachment: fixed; | |
| } | |
| body { | |
| background-image: url("img/imgname.png"); | |
| background-attachment: fixed; | |
| } | |
| body { | |
| background-image: url("image1.png"), url("image2.png"); | |
| background-attachment: scroll, fixed; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment