/ Published in: CSS
this snippet modifies a SPAN tag inside a A link so that it covers a nearby IMG and applies a semi-transparent gray layer over it, making the IMG to be grayscaled
Expand |
Embed | Plain Text
<!-- HTML --> <a class="a-thumb"><img src="/img/proxy-thumb.gif" /><span> </span></a> /* CSS */ 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;}
You need to login to post a comment.
