Created
October 8, 2016 10:23
-
-
Save richstrauss/c5268a8f8d033bbd49efe8a8a89eb890 to your computer and use it in GitHub Desktop.
Tinted Image w/ Multiple Backgrounds
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
.tinted-image { | |
width: 300px; | |
height: 200px; | |
background: | |
/* top, transparent red */ | |
linear-gradient( | |
rgba(255, 0, 0, 0.45), | |
rgba(255, 0, 0, 0.45) | |
), | |
/* bottom, image */ | |
url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/owl1.jpg); | |
} |
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
// http://codepen.io/chriscoyier/pen/CkFni | |
<div class="tinted-image"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment