Created
August 12, 2011 20:05
-
-
Save whistler/1142876 to your computer and use it in GitHub Desktop.
Monochrome image with CSS
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
a.a-thumb { | |
border: 1px solid black; | |
position: relative; | |
} | |
a.a-thumb img { | |
width: 60px; | |
height: 60px; | |
border: 0; | |
} | |
a.a-thumb span { | |
background-color: #000000; | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 60px; | |
height: 60px; | |
z-index: 100; | |
filter: alpha(opacity=20); | |
-moz-opacity: 0.2; | |
opacity: 0.2; | |
} |
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
<!-- HTML --> | |
<a class="a-thumb"><img src="/img/proxy-thumb.gif" /><span> </span></a> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment